public final class GenericRelevantItemsDataSplitter extends Object implements RelevantItemsDataSplitter
Constructor and Description |
---|
GenericRelevantItemsDataSplitter() |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
getRelevantItemsIDs(long userID,
int at,
double relevanceThreshold,
DataModel dataModel)
During testing, relevant items are removed from a particular users' preferences,
and a model is build using this user's other preferences and all other users.
|
void |
processOtherUser(long userID,
FastIDSet relevantItemIDs,
FastByIDMap<PreferenceArray> trainingUsers,
long otherUserID,
DataModel dataModel)
Adds a single user and all their preferences to the training model.
|
public FastIDSet getRelevantItemsIDs(long userID, int at, double relevanceThreshold, DataModel dataModel) throws TasteException
RelevantItemsDataSplitter
getRelevantItemsIDs
in interface RelevantItemsDataSplitter
at
- Maximum number of items to be removedrelevanceThreshold
- Minimum strength of preference for an item to be considered
relevantTasteException
public void processOtherUser(long userID, FastIDSet relevantItemIDs, FastByIDMap<PreferenceArray> trainingUsers, long otherUserID, DataModel dataModel) throws TasteException
RelevantItemsDataSplitter
processOtherUser
in interface RelevantItemsDataSplitter
userID
- ID of user whose preferences we are trying to predictrelevantItemIDs
- IDs of items considered relevant to that usertrainingUsers
- the database of training preferences to which we will
append the ones for otherUserID.otherUserID
- for whom we are adding preferences to the training modelTasteException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.