I am trying to use the item based recommender in mahout. It contains 2.5 M user,item interaction, without preference values. There are around 100 items and 100k users.It takes around 10s to recommend. Whereas for same data it takes less than a second when I use user based recommender.
ItemSimilarity sim = new TanimotoCoefficientSimilarity(dm);
CandidateItemsStrategy cis = new SamplingCandidateItemsStrategy(10,10,10,dm.getNumUsers(),dm.getNumItems());
MostSimilarItemsCandidateItemsStrategy mis = new SamplingCandidateItemsStrategy(10,10,10,dm.getNumUsers(),dm.getNumItems());
Recommender ur = new GenericBooleanPrefItemBasedRecommender(dm,sim,cis,mis);
I read one of the answer of @Sean where he suggests using the above parameters for SamplingCandidateItemsStrategy. But I am not that sure what it really does.
Edit: 2.5 M is the total user-item associations, there are 100K users and the total number of items are 100.