public final class Track2Recommender extends Object implements Recommender
Constructor and Description |
---|
Track2Recommender(DataModel dataModel,
File dataFileDirectory) |
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,
boolean includeKnownItems) |
List<RecommendedItem> |
recommend(long userID,
int howMany,
IDRescorer rescorer) |
List<RecommendedItem> |
recommend(long userID,
int howMany,
IDRescorer rescorer,
boolean includeKnownItems) |
void |
refresh(Collection<Refreshable> alreadyRefreshed) |
void |
removePreference(long userID,
long itemID) |
void |
setPreference(long userID,
long itemID,
float value) |
String |
toString() |
public Track2Recommender(DataModel dataModel, File dataFileDirectory) throws TasteException
TasteException
public List<RecommendedItem> recommend(long userID, int howMany) throws TasteException
recommend
in interface Recommender
TasteException
public List<RecommendedItem> recommend(long userID, int howMany, boolean includeKnownItems) throws TasteException
recommend
in interface Recommender
TasteException
public List<RecommendedItem> recommend(long userID, int howMany, IDRescorer rescorer) throws TasteException
recommend
in interface Recommender
TasteException
public List<RecommendedItem> recommend(long userID, int howMany, IDRescorer rescorer, boolean includeKnownItems) throws TasteException
recommend
in interface Recommender
TasteException
public float estimatePreference(long userID, long itemID) throws TasteException
estimatePreference
in interface Recommender
TasteException
public void setPreference(long userID, long itemID, float value) throws TasteException
setPreference
in interface Recommender
TasteException
public void removePreference(long userID, long itemID) throws TasteException
removePreference
in interface Recommender
TasteException
public DataModel getDataModel()
getDataModel
in interface Recommender
public void refresh(Collection<Refreshable> alreadyRefreshed)
refresh
in interface Refreshable
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.