Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DataModel dataModel = new FileDataModel(new File(dataFile));
- ItemSimilarity itemSimilarity = new CachingItemSimilarity(new LogLikelihoodSimilarity(dataModel), dataModel);
- CandidateItemsStrategy candidateItemsStrategy = new SamplingCandidateItemsStrategy();
- MostSimilarItemsCandidateItemsStrategy mostSimilarItemsCandidateItemsStrategy = new SamplingCandidateItemsStrategy();
- recommender = new GenericBooleanPrefItemBasedRecommender(dataModel, itemSimilarity, candidateItemsStrategy, mostSimilarItemsCandidateItemsStrategy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement