I have a "csv " file which contains the user id, the book he/she has read, the rating for each book. I want to use Lenskit to predict a book rating for a user. For example, the user A has read 3 books,A,B,C, I want to predicate the rating for the book A and see how close the predication is from the real rating. May anyone give me some idea about how to use Lenskit to do that. I am not developing any website and all of my code are just normal java files in Eclipse.
First, the traditional way to do this is via cross-validation, where you do a robust randomized splitting of the data into training data and test data.
The LensKit Evaluator supports doing this. The Quick Start descries how to get started; also there is a quick start that includes current best practices on running evaluations.
So you will need to set up an evaluation that does the following: