org.apache.mahout.cf.taste.impl.recommender
Class AbstractCandidateItemsStrategy

java.lang.Object
  extended by 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


Constructor Summary
AbstractCandidateItemsStrategy()
           
 
Method Summary
 FastIDSet getCandidateItems(long[] itemIDs, DataModel dataModel)
           
 FastIDSet getCandidateItems(long userID, PreferenceArray preferencesFromUser, DataModel dataModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCandidateItemsStrategy

public AbstractCandidateItemsStrategy()
Method Detail

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.