public abstract class AbstractDataset
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATASET
The key for an arbitrary dataset
|
static java.lang.String |
TEST_DATA
The key for a test dataset
|
static java.lang.String |
TRAINING_DATA
The key for a training dataset
|
Constructor and Description |
---|
AbstractDataset(Instances headerWithSummary)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdditionalDataElement(java.lang.String key)
Get an additional piece of data
|
void |
setAdditionalDataElement(java.lang.String key,
java.lang.Object value)
Add an additional piece of data to carry along with this dataset
|
public static final java.lang.String DATASET
public static final java.lang.String TRAINING_DATA
public static final java.lang.String TEST_DATA
public AbstractDataset(Instances headerWithSummary)
headerWithSummary
- header for the dataset (optionally with summary
metadata)public void setAdditionalDataElement(java.lang.String key, java.lang.Object value)
key
- the key for the datavalue
- the datapublic java.lang.Object getAdditionalDataElement(java.lang.String key)
key
- the key of the data to get