public abstract class AbstractHoldout extends java.lang.Object implements Holdout
Modifier and Type | Field and Description |
---|---|
protected MultipleObjectsBundle |
bundle
Input data bundle.
|
protected int |
labelcol
Column containing the class labels.
|
protected java.util.ArrayList<ClassLabel> |
labels
Labels in the current data set.
|
Constructor and Description |
---|
AbstractHoldout() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<ClassLabel> |
allClassLabels(MultipleObjectsBundle bundle)
Get an array of all class labels in a given data set.
|
static java.util.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.
|
java.util.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 java.util.ArrayList<ClassLabel> labels
protected int labelcol
protected MultipleObjectsBundle bundle
public void initialize(MultipleObjectsBundle bundle)
Holdout
initialize
in interface Holdout
bundle
- Data set bundlepublic java.util.ArrayList<ClassLabel> getLabels()
Holdout
public static int findClassLabelColumn(MultipleObjectsBundle bundle)
bundle
- Bundlepublic static java.util.ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle)
bundle
- Bundlepublic static java.util.ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle, int col)
bundle
- Bundlecol
- ColumnCopyright © 2019 ELKI Development Team. License information.