MLLiB Collobrative Filtering Test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MLLiB Collobrative Filtering Test

barisak
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi ,

 I want  try to test the model on all all test rating data. I am following  https://github.com/apache/incubator-spark/blob/master/docs/mllib-guide.md   document.

predictions = model.predict(usersProducts).map{ case Rating(user, product, rate) => ((user, product), rate) }

I used above code for testing, but it says that predict function waits for two parameters.(user_id,prod_id) . When I check the definition of this function. It just control one user for one product.

How can I run the above command ? , Please help

thanks.

Baris