Modifier and Type | Method and Description |
---|---|
FastIDSet |
RelevantItemsDataSplitter.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.
|
Modifier and Type | Method and Description |
---|---|
void |
RelevantItemsDataSplitter.processOtherUser(long userID,
FastIDSet relevantItemIDs,
FastByIDMap<PreferenceArray> trainingUsers,
long otherUserID,
DataModel dataModel)
Adds a single user and all their preferences to the training model.
|
Modifier and Type | Method and Description |
---|---|
FastIDSet |
IDReader.getItemIds() |
FastIDSet |
IDReader.getItemsToRecommendForUser(Long userId)
Gets a collection of items which should be recommended for a user
|
FastIDSet |
IDReader.getUserIds() |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
FastIDSet.clone() |
Modifier and Type | Method and Description |
---|---|
boolean |
FastIDSet.addAll(FastIDSet c) |
int |
FastIDSet.intersectionSize(FastIDSet other)
Convenience method to quickly compute just the size of the intersection with another
FastIDSet . |
boolean |
FastIDSet.removeAll(FastIDSet c) |
boolean |
FastIDSet.retainAll(FastIDSet c) |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
GenericRelevantItemsDataSplitter.getRelevantItemsIDs(long userID,
int at,
double relevanceThreshold,
DataModel dataModel) |
Modifier and Type | Method and Description |
---|---|
void |
GenericRelevantItemsDataSplitter.processOtherUser(long userID,
FastIDSet relevantItemIDs,
FastByIDMap<PreferenceArray> trainingUsers,
long otherUserID,
DataModel dataModel) |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
PlusAnonymousUserDataModel.getItemIDsFromUser(long userID) |
FastIDSet |
GenericDataModel.getItemIDsFromUser(long userID) |
FastIDSet |
PlusAnonymousConcurrentUserDataModel.getItemIDsFromUser(long userID) |
FastIDSet |
GenericBooleanPrefDataModel.getItemIDsFromUser(long userID) |
Modifier and Type | Method and Description |
---|---|
FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.getRawItemData()
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.getRawUserData()
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
static FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.toDataMap(DataModel dataModel)
Exports the simple user IDs and associated item IDs in the data model.
|
static FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.toDataMap(FastByIDMap<PreferenceArray> data) |
Constructor and Description |
---|
GenericBooleanPrefDataModel(FastByIDMap<FastIDSet> userData)
Creates a new
GenericDataModel from the given users (and their preferences). |
GenericBooleanPrefDataModel(FastByIDMap<FastIDSet> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
FileDataModel.getItemIDsFromUser(long userID) |
Modifier and Type | Method and Description |
---|---|
protected void |
FileDataModel.processFileWithoutID(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
protected void |
FileDataModel.processLineWithoutID(String line,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
Modifier and Type | Method and Description |
---|---|
protected FastIDSet |
AbstractCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel) |
protected FastIDSet |
SamplingCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems) |
protected FastIDSet |
AllUnknownItemsCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems)
return all items the user has not yet seen
|
protected FastIDSet |
AllSimilarItemsCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems) |
protected abstract FastIDSet |
AbstractCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems) |
protected FastIDSet |
PreferredItemsNeighborhoodCandidateItemsStrategy.doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems)
returns all items that have not been rated by the user and that were preferred by another user
that has preferred at least one item that the current user has preferred too
|
protected FastIDSet |
GenericUserBasedRecommender.getAllOtherItems(long[] theNeighborhood,
long theUserID,
boolean includeKnownItems) |
protected FastIDSet |
GenericBooleanPrefUserBasedRecommender.getAllOtherItems(long[] theNeighborhood,
long theUserID,
boolean includeKnownItems) |
protected FastIDSet |
AbstractRecommender.getAllOtherItems(long userID,
PreferenceArray preferencesFromUser,
boolean includeKnownItems) |
FastIDSet |
AbstractCandidateItemsStrategy.getCandidateItems(long[] itemIDs,
DataModel dataModel) |
FastIDSet |
AbstractCandidateItemsStrategy.getCandidateItems(long userID,
PreferenceArray preferencesFromUser,
DataModel dataModel,
boolean includeKnownItems) |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
DataModel.getItemIDsFromUser(long userID) |
Modifier and Type | Method and Description |
---|---|
FastByIDMap<FastIDSet> |
JDBCDataModel.exportWithIDsOnly() |
Modifier and Type | Method and Description |
---|---|
FastIDSet |
MostSimilarItemsCandidateItemsStrategy.getCandidateItems(long[] itemIDs,
DataModel dataModel) |
FastIDSet |
CandidateItemsStrategy.getCandidateItems(long userID,
PreferenceArray preferencesFromUser,
DataModel dataModel,
boolean includeKnownItems) |
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.