rs.add(Ratings.make(5, 8, 3));
rs.add(Ratings.make(6, 8, 2));
rs.add(Ratings.make(1, 9, 3));
rs.add(Ratings.make(3, 9, 4));
EventCollectionDAO dao = new EventCollectionDAO(rs);
LenskitConfiguration config = new LenskitConfiguration();
config.bind(EventDAO.class).to(dao);
config.bind(ItemScorer.class).to(ItemItemScorer.class);
// this is the default
config.bind(UserVectorNormalizer.class)
.to(DefaultUserVectorNormalizer.class);
config.bind(VectorNormalizer.class)
.to(IdentityVectorNormalizer.class);
LenskitRecommenderEngine engine = LenskitRecommenderEngine.build(config);
session = engine.createRecommender();
recommender = session.getItemRecommender();
}