public final class BookCrossingBooleanRecommender implements Recommender {
private final Recommender recommender;
public BookCrossingBooleanRecommender(DataModel bcModel) throws TasteException {
UserSimilarity similarity = new CachingUserSimilarity(new LogLikelihoodSimilarity(bcModel), bcModel);
UserNeighborhood neighborhood =
new NearestNUserNeighborhood(10, Double.NEGATIVE_INFINITY, similarity, bcModel, 1.0);
recommender = new GenericBooleanPrefUserBasedRecommender(bcModel, neighborhood, similarity);
}