public class MultilabelDatasetSplitter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getSplitTechniqueAndDetailsSeparator()
Obtain the token used to separate a split technique and the details about the
split.
|
static weka.core.Instances |
getTestSplit(weka.core.Instances data,
java.lang.String splitDescription,
java.lang.String testFold,
java.lang.String seed)
Split the Instances object according to the given splitDescription.
|
static weka.core.Instances |
getTrainSplit(weka.core.Instances data,
java.lang.String splitDescription,
java.lang.String testFold,
java.lang.String seed)
Split the Instances object according to the given splitDescription.
|
public static weka.core.Instances getTestSplit(weka.core.Instances data,
java.lang.String splitDescription,
java.lang.String testFold,
java.lang.String seed)
getSplitTechniqueAndDetailsSeparator(). The returned data will only
contain the testFold. The seed is given to the technique if it uses a seed.data - The data to extract a test fold fromsplitDescription - The description of how the split shall be performedtestFold - The number of the fold to be extracted (0...n)seed - The random seed to be used by the techniquepublic static weka.core.Instances getTrainSplit(weka.core.Instances data,
java.lang.String splitDescription,
java.lang.String testFold,
java.lang.String seed)
getSplitTechniqueAndDetailsSeparator(). The returned data will not
contain the testFold. The seed is given to the technique if it uses a seed.data - The data to extract a train fold fromsplitDescription - The description of how the split shall be performedtestFold - The number of the fold to be excluded (0..n)seed - The random seed to be used by the techniquepublic static java.lang.String getSplitTechniqueAndDetailsSeparator()