Github user noel-smith commented on a diff in the pull request:
https://github.com/apache/spark/pull/8677#discussion_r39548087
--- Diff: python/pyspark/mllib/recommendation.py ---
@@ -157,17 +167,25 @@ def recommendProducts(self, user, num):
return list(self.call("recommendProducts", user, num))
@property
+ @since("1.3.1")
def rank(self):
+ """Rank for the features in this model"""
return self.call("rank")
@classmethod
+ @since("1.3.1")
def load(cls, sc, path):
+ """Load a model from the given path"""
model = cls._load_java(sc, path)
wrapper = sc._jvm.MatrixFactorizationModelWrapper(model)
return MatrixFactorizationModel(wrapper)
class ALS(object):
+ """Alternating Least Squares matrix factorization
+
+ .. addedversion:: 0.9.0
--- End diff --
Same again - should be `.. versionadded::`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]