org.apache.mahout.cf.taste.example.bookcrossing
Class BookCrossingRecommender
java.lang.Object
org.apache.mahout.cf.taste.example.bookcrossing.BookCrossingRecommender
- All Implemented Interfaces:
- Refreshable, Recommender
public final class BookCrossingRecommender
- extends java.lang.Object
- implements Recommender
A simple Recommender
implemented for the Book Crossing demo.
See the Book Crossing site.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BookCrossingRecommender
public BookCrossingRecommender(DataModel bcModel)
throws TasteException
- Throws:
TasteException
recommend
public java.util.List<RecommendedItem> recommend(long userID,
int howMany)
throws TasteException
- Specified by:
recommend
in interface Recommender
- Throws:
TasteException
recommend
public java.util.List<RecommendedItem> recommend(long userID,
int howMany,
IDRescorer rescorer)
throws TasteException
- Specified by:
recommend
in interface Recommender
- Throws:
TasteException
estimatePreference
public float estimatePreference(long userID,
long itemID)
throws TasteException
- Specified by:
estimatePreference
in interface Recommender
- Throws:
TasteException
setPreference
public void setPreference(long userID,
long itemID,
float value)
throws TasteException
- Specified by:
setPreference
in interface Recommender
- Throws:
TasteException
removePreference
public void removePreference(long userID,
long itemID)
throws TasteException
- Specified by:
removePreference
in interface Recommender
- Throws:
TasteException
getDataModel
public DataModel getDataModel()
- Specified by:
getDataModel
in interface Recommender
refresh
public void refresh(java.util.Collection<Refreshable> alreadyRefreshed)
- Specified by:
refresh
in interface Refreshable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.