Modifier and Type | Method and Description |
---|---|
DataModel |
DataModelBuilder.buildDataModel(FastByIDMap<PreferenceArray> trainingData)
Builds a
DataModel implementation to be used in an evaluation, given training data. |
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 |
---|---|
FastByIDMap<V> |
FastByIDMap.clone() |
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 |
---|---|
FastByIDMap<PreferenceArray> |
GenericDataModel.getRawItemData()
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.getRawItemData()
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
FastByIDMap<PreferenceArray> |
GenericDataModel.getRawUserData()
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<PreferenceArray> |
GenericDataModel.toDataMap(DataModel dataModel)
Exports the simple user IDs and preferences in the data model.
|
static FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.toDataMap(DataModel dataModel)
Exports the simple user IDs and associated item IDs in the data model.
|
static FastByIDMap<PreferenceArray> |
GenericDataModel.toDataMap(FastByIDMap<Collection<Preference>> data,
boolean byUser)
|
static FastByIDMap<FastIDSet> |
GenericBooleanPrefDataModel.toDataMap(FastByIDMap<PreferenceArray> data) |
Modifier and Type | Method and Description |
---|---|
static FastByIDMap<PreferenceArray> |
GenericDataModel.toDataMap(FastByIDMap<Collection<Preference>> data,
boolean byUser)
|
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). |
GenericBooleanPrefDataModel(FastByIDMap<FastIDSet> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
GenericDataModel(FastByIDMap<PreferenceArray> userData)
Creates a new
GenericDataModel from the given users (and their preferences). |
GenericDataModel(FastByIDMap<PreferenceArray> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
GenericDataModel(FastByIDMap<PreferenceArray> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
Constructor and Description |
---|
GenericBooleanPrefDataModel(FastByIDMap<FastIDSet> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
GenericDataModel(FastByIDMap<PreferenceArray> userData,
FastByIDMap<FastByIDMap<Long>> timestamps)
Creates a new
GenericDataModel from the given users (and their preferences). |
Modifier and Type | Method and Description |
---|---|
protected void |
FileDataModel.processFile(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData) |
protected void |
FileDataModel.processFile(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData) |
protected void |
FileDataModel.processFileWithoutID(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
protected void |
FileDataModel.processFileWithoutID(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
protected void |
FileDataModel.processLine(String line,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData)
Reads one line from the input file and adds the data to a
FastByIDMap data structure which maps user IDs
to preferences. |
protected void |
FileDataModel.processLine(String line,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData)
Reads one line from the input file and adds the data to a
FastByIDMap data structure which maps user IDs
to preferences. |
protected void |
FileDataModel.processLineWithoutID(String line,
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 void |
FileDataModel.processFile(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData) |
protected void |
FileDataModel.processFileWithoutID(FileLineIterator dataOrUpdateFileIterator,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
protected void |
FileDataModel.processLine(String line,
FastByIDMap<?> data,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData)
Reads one line from the input file and adds the data to a
FastByIDMap data structure which maps user IDs
to preferences. |
protected void |
FileDataModel.processLineWithoutID(String line,
FastByIDMap<FastIDSet> data,
FastByIDMap<FastByIDMap<Long>> timestamps) |
Constructor and Description |
---|
Factorization(FastByIDMap<Integer> userIDMapping,
FastByIDMap<Integer> itemIDMapping,
double[][] userFeatures,
double[][] itemFeatures) |
Factorization(FastByIDMap<Integer> userIDMapping,
FastByIDMap<Integer> itemIDMapping,
double[][] userFeatures,
double[][] itemFeatures) |
Modifier and Type | Method and Description |
---|---|
FastByIDMap<FastIDSet> |
JDBCDataModel.exportWithIDsOnly() |
FastByIDMap<PreferenceArray> |
JDBCDataModel.exportWithPrefs()
Hmm, should this exist elsewhere? seems like most relevant for a DB implementation, which is not in
memory, which might want to export to memory.
|
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.