Skip to content

Commit

Permalink
Parens for collectAsMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyklebu committed May 1, 2014
1 parent 2b2febe commit 0455cd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ object ALS {
prodOutbound(p) += prodSendGrid.getOrElse((p, u), 0.0)
}

val userCounts = userOut.mapValues(x => x.elementIds.length).collectAsMap
val prodCounts = prodOut.mapValues(x => x.elementIds.length).collectAsMap
val userCounts = userOut.mapValues(x => x.elementIds.length).collectAsMap()
val prodCounts = prodOut.mapValues(x => x.elementIds.length).collectAsMap()

val userRatings = countRatings(userIn)
val prodRatings = countRatings(prodIn)
Expand Down

0 comments on commit 0455cd4

Please sign in to comment.