rs.add(Ratings.make(1, 7, 4));
rs.add(Ratings.make(2, 7, 4));
rs.add(Ratings.make(3, 7, 1.5));
LenskitConfiguration config = new LenskitConfiguration();
config.bind(EventDAO.class).to(EventCollectionDAO.create(rs));
config.bind(ItemScorer.class).to(SlopeOneItemScorer.class);
config.bind(PreferenceDomain.class).to(new PreferenceDomainBuilder(1, 5)
.setPrecision(1)
.build());
ItemScorer predictor = LenskitRecommenderEngine.build(config)