Skip to content

Commit 5149d40

Browse files
committed
Changes based on review
1 parent 1dd7657 commit 5149d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/scala/org/apache/spark/examples/mllib/MovieLensALS.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ object MovieLensALS {
9393
val ratings = sc.textFile(params.input).map { line =>
9494
val fields = line.split("::")
9595
if (params.implicitPrefs) {
96-
Rating(fields(0).toInt, fields(1).toInt, if (fields(2).toInt >= 3) 1.0 else 0.0)
96+
Rating(fields(0).toInt, fields(1).toInt, if (fields(2).toDouble >= 2.5) 1.0 else 0.0)
9797
} else {
9898
Rating(fields(0).toInt, fields(1).toInt, fields(2).toDouble)
9999
}

0 commit comments

Comments
 (0)