Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-3066][MLLIB] Support recommendAll in matrix factorization model #5829

wants to merge 18 commits into from
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

import scala.math.round

  • Loading branch information...
Debasish Das
Debasish Das committed Nov 6, 2014
commit 9fa063e1eb172d68248e03797a54acc738543592
@@ -182,7 +182,7 @@ object MovieLensALS {
def mapPredictedRating(r: Double, implicitPrefs: Boolean) = {
if (implicitPrefs) math.max(math.min(r, 1.0), 0.0)
else math.max(scala.math.round(r), 0.0)
else math.max(round(r), 0.0)

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.