dao = EventCollectionDAO.create(rs);
}
@SuppressWarnings({"deprecation", "unchecked"})
private LenskitRecommenderEngine makeEngine() throws RecommenderBuildException {
LenskitConfiguration config = new LenskitConfiguration();
config.bind(EventDAO.class).to(dao);
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(UserMeanBaseline.class, ItemScorer.class)
.to(ItemMeanRatingItemScorer.class);
config.bind(StoppingCondition.class)
.to(IterationCountStoppingCondition.class);
config.set(IterationCount.class)
.to(10);
config.set(FeatureCount.class)
.to(20);
return LenskitRecommenderEngine.build(config);
}