rs.add(Ratings.make(6, 8, 2));
rs.add(Ratings.make(1, 9, 3));
rs.add(Ratings.make(3, 9, 4));
dao = new EventCollectionDAO(rs);
LenskitConfiguration config = new LenskitConfiguration();
config.bind(PreferenceSnapshot.class).to(PackedPreferenceSnapshot.class);
config.bind(ItemScorer.class).to(FunkSVDItemScorer.class);
config.bind(BaselineScorer.class, ItemScorer.class)
.to(UserMeanItemScorer.class);
config.bind(Integer.class).withQualifier(FeatureCount.class).to(100);
// FIXME: Don't use 100 features.
RecommenderEngine engine = LenskitRecommenderEngine.build(config);
svdRecommender = engine.createRecommender();
recommender = svdRecommender.getItemRecommender();
}