org.apache.mahout.cf.taste.impl.recommender
Class AbstractCandidateItemsStrategy
java.lang.Object
org.apache.mahout.cf.taste.impl.recommender.AbstractCandidateItemsStrategy
- All Implemented Interfaces:
- CandidateItemsStrategy, MostSimilarItemsCandidateItemsStrategy
- Direct Known Subclasses:
- AllSimilarItemsCandidateItemsStrategy, AllUnknownItemsCandidateItemsStrategy, PreferredItemsNeighborhoodCandidateItemsStrategy, SamplingCandidateItemsStrategy
public abstract class AbstractCandidateItemsStrategy
- extends Object
- implements CandidateItemsStrategy, MostSimilarItemsCandidateItemsStrategy
Abstract base implementation for retrieving candidate items to recommend
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCandidateItemsStrategy
public AbstractCandidateItemsStrategy()
getCandidateItems
public FastIDSet getCandidateItems(long userID,
PreferenceArray preferencesFromUser,
DataModel dataModel)
throws TasteException
- Specified by:
getCandidateItems
in interface CandidateItemsStrategy
- Returns:
- IDs of all items that could be recommended to the user
- Throws:
TasteException
getCandidateItems
public FastIDSet getCandidateItems(long[] itemIDs,
DataModel dataModel)
throws TasteException
- Specified by:
getCandidateItems
in interface MostSimilarItemsCandidateItemsStrategy
- Throws:
TasteException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.