public abstract class AbstractHoldout extends Object implements Holdout
Modifier and Type | Field and Description |
---|---|
protected MultipleObjectsBundle |
bundle
Input data bundle.
|
protected int |
labelcol
Column containing the class labels.
|
protected ArrayList<ClassLabel> |
labels
Labels in the current data set.
|
Constructor and Description |
---|
AbstractHoldout() |
Modifier and Type | Method and Description |
---|---|
static ArrayList<ClassLabel> |
allClassLabels(MultipleObjectsBundle bundle)
Get an array of all class labels in a given data set.
|
static ArrayList<ClassLabel> |
allClassLabels(MultipleObjectsBundle bundle,
int col)
Get an array of all class labels in a given data set.
|
static int |
findClassLabelColumn(MultipleObjectsBundle bundle)
Find the class label column in the given data set.
|
ArrayList<ClassLabel> |
getLabels()
Get the sorted class labels present in this data set.
|
void |
initialize(MultipleObjectsBundle bundle)
Initialize the holdout procedure for a data set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextPartitioning, numberOfPartitions
protected ArrayList<ClassLabel> labels
protected int labelcol
protected MultipleObjectsBundle bundle
public void initialize(MultipleObjectsBundle bundle)
Holdout
initialize
in interface Holdout
bundle
- Data set bundlepublic ArrayList<ClassLabel> getLabels()
Holdout
public static int findClassLabelColumn(MultipleObjectsBundle bundle)
bundle
- Bundlepublic static ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle)
bundle
- Bundlepublic static ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle, int col)
bundle
- Bundlecol
- ColumnCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.