| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
MatrixFactorizationModel
A matrix factorisation model trained by regularized alternating least-squares.
>>> r1 = (1, 1, 1.0) >>> r2 = (1, 2, 2.0) >>> r3 = (2, 1, 2.0) >>> ratings = sc.parallelize([r1, r2, r3]) >>> model = ALS.trainImplicit(ratings, 1) >>> model.predict(2,2) is not None True >>> testset = sc.parallelize([(1, 2), (1, 1)]) >>> model.predictAll(testset).count() == 2 True
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Mar 2 16:35:00 2014 | http://epydoc.sourceforge.net |