Skip to content

Commit d5763c3

Browse files
dusenberrymwmengxr
authored andcommitted
[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 <[email protected]> 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. (cherry picked from commit 0463428) Signed-off-by: Xiangrui Meng <[email protected]>
1 parent 6c41e1c commit d5763c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/mllib-collaborative-filtering.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ other signals), you can use the `trainImplicit` method to get better results.
102102

103103
{% highlight scala %}
104104
val alpha = 0.01
105-
val model = ALS.trainImplicit(ratings, rank, numIterations, alpha)
105+
val lambda = 0.01
106+
val model = ALS.trainImplicit(ratings, rank, numIterations, lambda, alpha)
106107
{% endhighlight %}
107108
</div>
108109

0 commit comments

Comments
 (0)