Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/3095#discussion_r19988630
--- Diff: python/pyspark/mllib/recommendation.py ---
@@ -45,30 +45,46 @@ class MatrixFactorizationModel(JavaModelWrapper):
>>> r3 = (2, 1, 2.0)
>>> ratings = sc.parallelize([r1, r2, r3])
>>> model = ALS.trainImplicit(ratings, 1)
- >>> model.predict(2,2) is not None
- True
+ >>> model.predict(2,2)
+ 0.4473...
--- End diff --
Is there any guarantee that it will always be `0.4473...`? Did we fix the
seed? Same question applies to all tests below.
---
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]