org.apache.mahout.cf.taste.recommender
Interface UserBasedRecommender
- All Superinterfaces:
- Recommender, Refreshable
- All Known Implementing Classes:
- GenericBooleanPrefUserBasedRecommender, GenericUserBasedRecommender
public interface UserBasedRecommender
- extends Recommender
Interface implemented by "user-based" recommenders.
mostSimilarUserIDs
long[] mostSimilarUserIDs(long userID,
int howMany)
throws TasteException
- Parameters:
userID
- ID of user for which to find most similar other usershowMany
- desired number of most similar users to find
- Returns:
- users most similar to the given user
- Throws:
TasteException
- if an error occurs while accessing the DataModel
mostSimilarUserIDs
long[] mostSimilarUserIDs(long userID,
int howMany,
Rescorer<LongPair> rescorer)
throws TasteException
- Parameters:
userID
- ID of user for which to find most similar other usershowMany
- desired number of most similar users to findrescorer
- Rescorer
which can adjust user-user similarity estimates used to determine most similar
users
- Returns:
- IDs of users most similar to the given user
- Throws:
TasteException
- if an error occurs while accessing the DataModel
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.