We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd7657 commit 5149d40Copy full SHA for 5149d40
examples/src/main/scala/org/apache/spark/examples/mllib/MovieLensALS.scala
@@ -93,7 +93,7 @@ object MovieLensALS {
93
val ratings = sc.textFile(params.input).map { line =>
94
val fields = line.split("::")
95
if (params.implicitPrefs) {
96
- Rating(fields(0).toInt, fields(1).toInt, if (fields(2).toInt >= 3) 1.0 else 0.0)
+ Rating(fields(0).toInt, fields(1).toInt, if (fields(2).toDouble >= 2.5) 1.0 else 0.0)
97
} else {
98
Rating(fields(0).toInt, fields(1).toInt, fields(2).toDouble)
99
}
0 commit comments