diff options
author | Mike Dusenberry <dusenberrymw@gmail.com> | 2015-05-26 18:08:57 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-05-26 18:08:57 -0700 |
commit | 0463428b6e8f364f0b1f39445a60cd85ae7c07bc (patch) | |
tree | 0280d2fd43a3a21d9bb2a5e21935efc8d5a326b5 | |
parent | 8f2082426828c15704426ebca1d015bf956c6841 (diff) | |
download | spark-0463428b6e8f364f0b1f39445a60cd85ae7c07bc.tar.gz spark-0463428b6e8f364f0b1f39445a60cd85ae7c07bc.tar.bz2 spark-0463428b6e8f364f0b1f39445a60cd85ae7c07bc.zip |
[SPARK-7883] [DOCS] [MLLIB] Fixing broken trainImplicit Scala example in MLlib Collaborative Filtering documentation.
Fixing broken trainImplicit Scala example in MLlib Collaborative Filtering documentation to match one of the possible ALS.trainImplicit function signatures.
Author: Mike Dusenberry <dusenberrymw@gmail.com>
Closes #6422 from dusenberrymw/Fix_MLlib_Collab_Filtering_trainImplicit_Example and squashes the following commits:
36492f4 [Mike Dusenberry] Fixing broken trainImplicit example in MLlib Collaborative Filtering documentation to match one of the possible ALS.trainImplicit function signatures.
-rw-r--r-- | docs/mllib-collaborative-filtering.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/mllib-collaborative-filtering.md b/docs/mllib-collaborative-filtering.md index 7b397e30b2..dfdf6216b2 100644 --- a/docs/mllib-collaborative-filtering.md +++ b/docs/mllib-collaborative-filtering.md @@ -107,7 +107,8 @@ other signals), you can use the `trainImplicit` method to get better results. {% highlight scala %} val alpha = 0.01 -val model = ALS.trainImplicit(ratings, rank, numIterations, alpha) +val lambda = 0.01 +val model = ALS.trainImplicit(ratings, rank, numIterations, lambda, alpha) {% endhighlight %} </div> |