Skip to content

Commit

Permalink
import scala.math.round
Browse files Browse the repository at this point in the history
  • Loading branch information
Debasish Das committed Nov 6, 2014
1 parent 4bbae0f commit 9fa063e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit 9fa063e

Please sign in to comment.