public void testEvaluate() throws Exception {
DataModel model = getDataModel();
RecommenderBuilder builder = new RecommenderBuilder() {
@Override
public Recommender buildRecommender(DataModel dataModel) throws TasteException {
return new SlopeOneRecommender(dataModel);
}
};
RecommenderEvaluator evaluator = new RMSRecommenderEvaluator();
double eval = evaluator.evaluate(builder, null, model, 0.85, 1.0);
assertEquals(0.3481984752619784, eval, EPSILON);