public interface PreferenceInferrer extends Refreshable
Implementations of this interface compute an inferred preference for a user and an item that the user has not expressed any preference for. This might be an average of other preferences scores from that user, for example. This technique is sometimes called "default voting".
Modifier and Type | Method and Description |
---|---|
float |
inferPreference(long userID,
long itemID)
Infers the given user's preference value for an item.
|
refresh
float inferPreference(long userID, long itemID) throws TasteException
Infers the given user's preference value for an item.
userID
- ID of user to infer preference foritemID
- item ID to infer preference forTasteException
- if an error occurs while inferringCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.