|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.cf.taste.impl.recommender.SamplingCandidateItemsStrategy
public class SamplingCandidateItemsStrategy
returns all items that have not been rated by the user and that were preferred by another user that has preferred at least one item that the current user has preferred too
this strategy uses sampling in a way that only a certain amount of preferences per item is considered
max(defaultMaxPrefsPerItemConsidered, userItemCountFactor * log(max(N_users, N_items)))
Constructor Summary | |
---|---|
SamplingCandidateItemsStrategy()
uses defaultMaxPrefsPerItemConsidered = 100 and userItemCountMultiplier = 20 as default values |
|
SamplingCandidateItemsStrategy(int defaultMaxPrefsPerItemConsidered,
int userItemCountMultiplier)
the maximum number of prefs considered per item will be computed like this: |
Method Summary | |
---|---|
FastIDSet |
getCandidateItems(long userID,
DataModel dataModel)
#return IDs of all items that could be recommended to the user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SamplingCandidateItemsStrategy()
SamplingCandidateItemsStrategy(int, int)
public SamplingCandidateItemsStrategy(int defaultMaxPrefsPerItemConsidered, int userItemCountMultiplier)
the maximum number of prefs considered per item will be computed like this:
max(defaultMaxPrefsPerItemConsidered, userItemCountFactor * log(max(N_users, N_items)))
defaultMaxPrefsPerItemConsidered
- userItemCountMultiplier
- Method Detail |
---|
public FastIDSet getCandidateItems(long userID, DataModel dataModel) throws TasteException
CandidateItemsStrategy
getCandidateItems
in interface CandidateItemsStrategy
TasteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |