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

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   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