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

java.lang.Object
  extended by org.apache.mahout.cf.taste.impl.recommender.AbstractCandidateItemsStrategy
      extended by org.apache.mahout.cf.taste.impl.recommender.PreferredItemsNeighborhoodCandidateItemsStrategy
All Implemented Interfaces:
CandidateItemsStrategy, MostSimilarItemsCandidateItemsStrategy

public final class PreferredItemsNeighborhoodCandidateItemsStrategy
extends AbstractCandidateItemsStrategy


Constructor Summary
PreferredItemsNeighborhoodCandidateItemsStrategy()
           
 
Method Summary
protected  FastIDSet doGetCandidateItems(long[] preferredItemIDs, DataModel dataModel)
          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
 
Methods inherited from class org.apache.mahout.cf.taste.impl.recommender.AbstractCandidateItemsStrategy
getCandidateItems, getCandidateItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferredItemsNeighborhoodCandidateItemsStrategy

public PreferredItemsNeighborhoodCandidateItemsStrategy()
Method Detail

doGetCandidateItems

protected FastIDSet doGetCandidateItems(long[] preferredItemIDs,
                                        DataModel dataModel)
                                 throws TasteException
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

Throws:
TasteException


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.