public final class GenericBooleanPrefUserBasedRecommender extends GenericUserBasedRecommender
GenericUserBasedRecommender
which is appropriate for use when no notion of preference
value exists in the data.Constructor and Description |
---|
GenericBooleanPrefUserBasedRecommender(DataModel dataModel,
UserNeighborhood neighborhood,
UserSimilarity similarity) |
Modifier and Type | Method and Description |
---|---|
protected float |
doEstimatePreference(long theUserID,
long[] theNeighborhood,
long itemID)
This computation is in a technical sense, wrong, since in the domain of "boolean preference users" where
all preference values are 1, this method should only ever return 1.0 or NaN.
|
protected FastIDSet |
getAllOtherItems(long[] theNeighborhood,
long theUserID,
boolean includeKnownItems) |
String |
toString() |
estimatePreference, getSimilarity, mostSimilarUserIDs, mostSimilarUserIDs, recommend, refresh
getAllOtherItems, getDataModel, getDefaultCandidateItemsStrategy, recommend, recommend, recommend, removePreference, setPreference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataModel, recommend, recommend, recommend, removePreference, setPreference
public GenericBooleanPrefUserBasedRecommender(DataModel dataModel, UserNeighborhood neighborhood, UserSimilarity similarity)
protected float doEstimatePreference(long theUserID, long[] theNeighborhood, long itemID) throws TasteException
doEstimatePreference
in class GenericUserBasedRecommender
TasteException
protected FastIDSet getAllOtherItems(long[] theNeighborhood, long theUserID, boolean includeKnownItems) throws TasteException
getAllOtherItems
in class GenericUserBasedRecommender
TasteException
public String toString()
toString
in class GenericUserBasedRecommender
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.