Class

com.tencent.angel.ml.matrixfactorization

MFLearner

Related Doc: package matrixfactorization

Permalink

class MFLearner extends MLLearner

Learn a Matrix Factorization Model.

Linear Supertypes
MLLearner, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MFLearner
  2. MLLearner
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MFLearner(ctx: TaskContext)

    Permalink

    ctx

    : the context of running task

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val LOG: Log

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val batchNum: Int

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val conf: Configuration

    Permalink
    Definition Classes
    MLLearner
  9. val ctx: TaskContext

    Permalink

    : the context of running task

    : the context of running task

    Definition Classes
    MFLearnerMLLearner
  10. val epochNum: Int

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. val eta: Double

    Permalink
  14. val executor: ThreadPoolExecutor

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getLRReg: Double

    Permalink

    Calculate user vectors regularized loss value

    Calculate user vectors regularized loss value

    returns

    : user vectors regularized loss value

  18. val globalMetrics: GlobalMetrics

    Permalink
    Definition Classes
    MLLearner
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def init(): Unit

    Permalink
  21. def initItemsMat(): Unit

    Permalink

    Initialize item matrix in #batchNum batches, initialize #rowOneBath rows in each batch

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val lambda: Double

    Permalink
  24. var mfModel: MFModel

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def oneEpoch(epoch: Int): Unit

    Permalink
  29. val pEvaluateTasks: Array[PEvaluateTask]

    Permalink
  30. val pSgdTasks: Array[PSgdTask]

    Permalink
  31. val pWriteUserTask: Array[PWriteUserTask]

    Permalink
  32. val parallelism: Int

    Permalink
  33. def parseLine(value: Text): UserVec

    Permalink

    Parse a text line into a UserVec instance

    Parse a text line into a UserVec instance

    value

    : a line of text

    returns

    : a UserVec instance

  34. val rRow: Int

    Permalink
  35. val rank: Int

    Permalink
  36. def readUsers(): HashMap[Int, UserVec]

    Permalink

    Parse input text into trainning data

    Parse input text into trainning data

    Annotations
    @throws( ... ) @throws( ... ) @throws( ... )
  37. val rowOneBatch: Int

    Permalink
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. val taskId: Int

    Permalink
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. val totalTaskNum: Int

    Permalink
  42. def train(trainData: DataBlock[LabeledData], validataSet: DataBlock[LabeledData]): MLModel

    Permalink

    Train a matrix factorizaiton model

    Train a matrix factorizaiton model

    returns

    : a learned model

    Definition Classes
    MFLearnerMLLearner
  43. def trainOneEpoch(epoch: Int): Unit

    Permalink

    Train mf model in one epoch

  44. def validateOneEpoch(epoch: Int): Double

    Permalink

    Evaluate loss values in one epoch

    Evaluate loss values in one epoch

    returns

    : loss values of local users and realated items

    Annotations
    @throws( ... )
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def writeUserVectors: Unit

    Permalink

Inherited from MLLearner

Inherited from AnyRef

Inherited from Any

Ungrouped