Recommender recommender = new CachingRecommender(new GenericItemBasedRecommender(model, itemSimilarity));
doTestLoad(recommender, 240);
}
public void testUserLoad() throws Exception {
DataModel model = createModel();
UserSimilarity userSimilarity = new PearsonCorrelationSimilarity(model);
UserNeighborhood neighborhood = new NearestNUserNeighborhood(10, userSimilarity, model);
Recommender recommender =
new CachingRecommender(new GenericUserBasedRecommender(model, neighborhood, userSimilarity));
doTestLoad(recommender, 40);