Class/Object

com.tencent.angel.ml.matrixfactorization

MFModel

Related Docs: object MFModel | package matrixfactorization

Permalink

class MFModel extends MLModel

Matrix Factorization Model, consists item model and user model. Item model is a [#item, rank] matrix sotred on PS, each row represents an item. User model a UserVecs storage, each UserVec represents a user by a rank-dim vector. To save storage, we only cached items that appears in the local worker trainning data.

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

Instance Constructors

  1. new MFModel(conf: Configuration, _ctx: TaskContext = null)

    Permalink

    conf

    : configuration of algorithm

    _ctx

    : 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. def addPSModel(psModel: PSModel): MFModel.this.type

    Permalink
    Definition Classes
    MLModel
  5. def addPSModel(name: String, psModel: PSModel): MFModel.this.type

    Permalink
    Definition Classes
    MLModel
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buildItems(items: HashMap[Int, ItemVec]): Unit

    Permalink

    Build item vectors with local trainning data, onlu build items that appears in local trainning dataset

  8. def buildUsers(users: HashMap[Int, UserVec]): Unit

    Permalink

    Buid user vectors with local trainning data, only build users that appears in local trainning dataset

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. implicit def ctx: TaskContext

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getPSModel(name: String): PSModel

    Permalink
    Definition Classes
    MLModel
  16. def getPSModels: Map[String, PSModel]

    Permalink
    Definition Classes
    MLModel
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def itemMat: MatrixClient

    Permalink
  20. def itemNum: Int

    Permalink
  21. def items: HashMap[Int, ItemVec]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def predict(storage: DataBlock[LabeledData]): DataBlock[PredictResult]

    Permalink
    Definition Classes
    MFModel → MLModel
  26. def rank: Int

    Permalink
  27. def setLoadPath(conf: Configuration): MFModel.this.type

    Permalink
    Definition Classes
    MLModel
  28. def setSavePath(conf: Configuration): MFModel.this.type

    Permalink
    Definition Classes
    MLModel
  29. def setUsedItem(itemId: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def totalItemNum: Int

    Permalink
  33. def usedItemIDs: Array[Byte]

    Permalink
  34. def userNum: Int

    Permalink
  35. def users: HashMap[Int, UserVec]

    Permalink
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MLModel

Inherited from AnyRef

Inherited from Any

Ungrouped