May 2017
Intermediate to advanced
294 pages
7h 33m
English
It is good to see the evaluation metric, but to make it more fun, let's add my recommendations as created in the preceding section and then make predictions on some interesting movies:
val myrecs = spark.createDataFrame(Seq( (138494,1721,5,1489789319), (138494,10,3,1489789319), (138494,1,1,1489789319), (138494,225,4,1489789319), (138494,344,4,1489789319), (138494,480,5,1489789319), (138494,589,5,1489789319), (138494,780,4,1489789319), (138494,1049,4,1489789319) )).toDF("userId","movieId","rating","timestamp").as[Rating]
scala> val trainingWithMyRecs ...
Read now
Unlock full access