Constructor and Description |
---|
GenericTTDataSet(String name,
DataSource train,
DataSource query,
DataSource test,
UUID grp,
Map<String,Object> attrs) |
Modifier and Type | Method and Description |
---|---|
void |
configure(LenskitConfiguration config)
Configure LensKit to have the training data from this data source.
|
GenericTTDataBuilder |
copyBuilder()
Create a new builder initialized with this data set's values.
|
static GenericTTDataBuilder |
copyBuilder(TTDataSet data)
Create a new builder initialized with this data set's values.
|
Map<String,Object> |
getAttributes()
Get the data set attributes (used for identification in output).
|
UUID |
getIsolationGroup()
Get the isolation group ID for this data set.
|
String |
getName()
Get the data set name.
|
EventDAO |
getQueryDAO()
Get the query data.
|
DataSource |
getQueryData()
Get the query data.
|
EventDAO |
getTestDAO()
Get the test data.
|
DataSource |
getTestData()
Get the training data.
|
EventDAO |
getTrainingDAO()
Get the training data.
|
DataSource |
getTrainingData()
Get the training data.
|
long |
lastModified()
Get the last modification time of this data set.
|
static GenericTTDataBuilder |
newBuilder()
Create a new generic train-test data set builder.
|
static GenericTTDataBuilder |
newBuilder(String name)
Create a new generic train-test data set builder.
|
String |
toString() |
public GenericTTDataSet(@Nonnull String name, @Nonnull DataSource train, @Nullable DataSource query, @Nonnull DataSource test, UUID grp, Map<String,Object> attrs)
@Nonnull public String getName()
TTDataSet
public Map<String,Object> getAttributes()
TTDataSet
getAttributes
in interface TTDataSet
public UUID getIsolationGroup()
TTDataSet
getIsolationGroup
in interface TTDataSet
public long lastModified()
TTDataSet
lastModified
in interface TTDataSet
public EventDAO getTrainingDAO()
TTDataSet
getTrainingDAO
in interface TTDataSet
public EventDAO getQueryDAO()
TTDataSet
getQueryDAO
in interface TTDataSet
public EventDAO getTestDAO()
TTDataSet
getTestDAO
in interface TTDataSet
@Nonnull public DataSource getTestData()
TTDataSet
getTestData
in interface TTDataSet
@Nonnull public DataSource getTrainingData()
TTDataSet
getTrainingData
in interface TTDataSet
public DataSource getQueryData()
TTDataSet
getQueryData
in interface TTDataSet
public void configure(LenskitConfiguration config)
TTDataSet
public static GenericTTDataBuilder newBuilder()
public static GenericTTDataBuilder newBuilder(String name)
name
- The data set name.public GenericTTDataBuilder copyBuilder()
public static GenericTTDataBuilder copyBuilder(TTDataSet data)