Class RandomMultilabelCrossValidation
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.dataset.splitter.RandomMultilabelCrossValidation
-
- All Implemented Interfaces:
IMultilabelCrossValidation
public class RandomMultilabelCrossValidation extends java.lang.Object implements IMultilabelCrossValidation
Class executing pseudo-random splits to enable multilabelcrossvalidation.
-
-
Constructor Summary
Constructors Constructor Description RandomMultilabelCrossValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the name of the implementing multilabel cross validation technique.java.lang.StringgetSplitSeparator()Get the separator used to separate single portions of a split in a given splitInfo.weka.core.InstancesgetTestSplit(weka.core.Instances data, int seed, int fold, java.lang.String splitInfo)Gets a test split from the given data based on the seed.weka.core.InstancesgetTrainSplit(weka.core.Instances data, int seed, int fold, java.lang.String splitInfo)Gets a train split from the given data based on the seed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.libs.jaicore.ml.weka.dataset.splitter.IMultilabelCrossValidation
generateSplittingInfo, generateSplittingString
-
-
-
-
Method Detail
-
getTestSplit
public weka.core.Instances getTestSplit(weka.core.Instances data, int seed, int fold, java.lang.String splitInfo)Description copied from interface:IMultilabelCrossValidationGets a test split from the given data based on the seed. The given fold is the test fold.- Specified by:
getTestSplitin interfaceIMultilabelCrossValidation- Parameters:
data- The data from which to derive the splitseed- The seed possibly used by the implementation class to derive the splitfold- The number of the fold which is the testing foldsplitInfo- Information about the split for the class executing the split (e.g. portion sizes of folds)- Returns:
- A test Instances derived from the given instances
-
getTrainSplit
public weka.core.Instances getTrainSplit(weka.core.Instances data, int seed, int fold, java.lang.String splitInfo)Description copied from interface:IMultilabelCrossValidationGets a train split from the given data based on the seed. The given fold is the test fold, which is the left out fold for this case.- Specified by:
getTrainSplitin interfaceIMultilabelCrossValidation- Parameters:
data- The data from which to derive the splitseed- The seed possibly used by the implementation class to derive the splitfold- The number of the fold which is the testing fold (left out fold)splitInfo- Information about the split for the class executing the split (e.g. portion sized of folds)- Returns:
- A train Instances derived from the given instances
-
getName
public java.lang.String getName()
Description copied from interface:IMultilabelCrossValidationGet the name of the implementing multilabel cross validation technique.- Specified by:
getNamein interfaceIMultilabelCrossValidation- Returns:
- The name of the technique
-
getSplitSeparator
public java.lang.String getSplitSeparator()
Description copied from interface:IMultilabelCrossValidationGet the separator used to separate single portions of a split in a given splitInfo. E.g. if the splitInfo represents data portions, it could be 0.7/0.3 with "/" being the split separator.- Specified by:
getSplitSeparatorin interfaceIMultilabelCrossValidation- Returns:
- The slit separator used by the specific implementation of this interface
-
-