Skip to content

Commit

Permalink
[SPARK-7883] [DOCS] [MLLIB] Fixing broken trainImplicit Scala example…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
dusenberrymw authored and mengxr committed May 27, 2015
1 parent 8f20824 commit 0463428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/mllib-collaborative-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 0463428

Please sign in to comment.