44. [Activity] Using MLLib to Produce Movie Recommendations
Activity
0 50 5 881250949
0 172 5 881250949
0 133 1 881250949Looking At The Code
import org.apache.spark.mllib.recommendation._ // Build the recommendation model using Alternating Least Squares
println("\nTraining recommendation model...")
val rank = 8
val numIterations = 20
val model = ALS.train(ratings, rank, numIterations)But The Results Aren't Really That Great.
MLLIB Is Still Really Useful, Though.
Last updated