Skip to content

Commit

Permalink
changed implicitPrefs so it is not serialized to fix MovieLensALS exa…
Browse files Browse the repository at this point in the history
…mple bug
  • Loading branch information
jkbradley committed Nov 5, 2014
1 parent c8abddc commit 9401b16
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ object MovieLensALS {

Logger.getRootLogger.setLevel(Level.WARN)

val implicitPrefs = params.implicitPrefs

val ratings = sc.textFile(params.input).map { line =>
val fields = line.split("::")
if (params.implicitPrefs) {
if (implicitPrefs) {
/*
* MovieLens ratings are on a scale of 1-5:
* 5: Must see
Expand Down

0 comments on commit 9401b16

Please sign in to comment.