Recommender evaluation with Mahout

Mahout provides a set of classes to help with the task of evaluating our recommender. Like the cross-validation we performed with the clj-ml library in Chapter 4, Classification, Mahout's evaluation proceeds by splitting the our ratings into two sets: a test set and a training set.

By training our recommender on the training set and then evaluating its performance on the test set, we can gain an understanding of how well, or poorly, our algorithm is performing against real data. To handle the task of training a model on the training data provided by Mahout's evaluator, we must supply an object conforming to the RecommenderBuilder interface. The interface defines just one method: buildRecommender. We can create ...

Get Clojure for Data Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.