Class TrainingAndTestSet
- java.lang.Object
-
- elki.evaluation.classification.holdout.TrainingAndTestSet
-
public class TrainingAndTestSet extends java.lang.Object
Wrapper to hold a pair of training and test data sets. The labels of both training and test set are provided in labels.- Since:
- 0.7.0
- Author:
- Arthur Zimek
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<ClassLabel>
labels
The overall labels.private MultipleObjectsBundle
test
The test data.private MultipleObjectsBundle
training
The training data.
-
Constructor Summary
Constructors Constructor Description TrainingAndTestSet(MultipleObjectsBundle training, MultipleObjectsBundle test, java.util.ArrayList<ClassLabel> labels)
Provides a pair of training and test data sets out of the given two databases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<ClassLabel>
getLabels()
Returns all labels present in the data set.MultipleObjectsBundle
getTest()
Returns the test data set.MultipleObjectsBundle
getTraining()
Returns the training data set.
-
-
-
Field Detail
-
labels
private java.util.ArrayList<ClassLabel> labels
The overall labels.
-
training
private MultipleObjectsBundle training
The training data.
-
test
private MultipleObjectsBundle test
The test data.
-
-
Constructor Detail
-
TrainingAndTestSet
public TrainingAndTestSet(MultipleObjectsBundle training, MultipleObjectsBundle test, java.util.ArrayList<ClassLabel> labels)
Provides a pair of training and test data sets out of the given two databases.
-
-
Method Detail
-
getTest
public MultipleObjectsBundle getTest()
Returns the test data set.- Returns:
- the test data set
-
getTraining
public MultipleObjectsBundle getTraining()
Returns the training data set.- Returns:
- the training data set
-
getLabels
public java.util.ArrayList<ClassLabel> getLabels()
Returns all labels present in the data set.- Returns:
- all labels
-
-