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, refreshgetAllOtherItems, getDataModel, getDefaultCandidateItemsStrategy, recommend, recommend, recommend, removePreference, setPreferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataModel, recommend, recommend, recommend, removePreference, setPreferencepublic GenericBooleanPrefUserBasedRecommender(DataModel dataModel, UserNeighborhood neighborhood, UserSimilarity similarity)
protected float doEstimatePreference(long theUserID,
long[] theNeighborhood,
long itemID)
throws TasteException
doEstimatePreference in class GenericUserBasedRecommenderTasteExceptionprotected FastIDSet getAllOtherItems(long[] theNeighborhood, long theUserID, boolean includeKnownItems) throws TasteException
getAllOtherItems in class GenericUserBasedRecommenderTasteExceptionpublic String toString()
toString in class GenericUserBasedRecommenderCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.