public final class BookCrossingBooleanRecommender extends Object implements Recommender
Recommender implemented for the Book Crossing demo.
See the Book Crossing site.| Constructor and Description |
|---|
BookCrossingBooleanRecommender(DataModel bcModel) |
| Modifier and Type | Method and Description |
|---|---|
float |
estimatePreference(long userID,
long itemID) |
DataModel |
getDataModel() |
List<RecommendedItem> |
recommend(long userID,
int howMany) |
List<RecommendedItem> |
recommend(long userID,
int howMany,
IDRescorer rescorer) |
void |
refresh(Collection<Refreshable> alreadyRefreshed) |
void |
removePreference(long userID,
long itemID) |
void |
setPreference(long userID,
long itemID,
float value) |
String |
toString() |
public BookCrossingBooleanRecommender(DataModel bcModel) throws TasteException
TasteExceptionpublic List<RecommendedItem> recommend(long userID, int howMany) throws TasteException
recommend in interface RecommenderTasteExceptionpublic List<RecommendedItem> recommend(long userID, int howMany, IDRescorer rescorer) throws TasteException
recommend in interface RecommenderTasteExceptionpublic float estimatePreference(long userID,
long itemID)
throws TasteException
estimatePreference in interface RecommenderTasteExceptionpublic void setPreference(long userID,
long itemID,
float value)
throws TasteException
setPreference in interface RecommenderTasteExceptionpublic void removePreference(long userID,
long itemID)
throws TasteException
removePreference in interface RecommenderTasteExceptionpublic DataModel getDataModel()
getDataModel in interface Recommenderpublic void refresh(Collection<Refreshable> alreadyRefreshed)
refresh in interface RefreshableCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.