public final class JesterRecommender extends Object implements Recommender
Recommender implemented for the Jester Online Joke Recommender data set demo.
See the Jester site.| Constructor and Description |
|---|
JesterRecommender(DataModel dataModel) |
| 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 JesterRecommender(DataModel dataModel) 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.