Class RandomMultilabelCrossValidation

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Get the name of the implementing multilabel cross validation technique.
      java.lang.String getSplitSeparator()
      Get the separator used to separate single portions of a split in a given splitInfo.
      weka.core.Instances getTestSplit​(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.Instances getTrainSplit​(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
    • Constructor Detail

      • RandomMultilabelCrossValidation

        public RandomMultilabelCrossValidation()
    • Method Detail

      • getTestSplit

        public weka.core.Instances getTestSplit​(weka.core.Instances data,
                                                int seed,
                                                int fold,
                                                java.lang.String splitInfo)
        Description copied from interface: IMultilabelCrossValidation
        Gets a test split from the given data based on the seed. The given fold is the test fold.
        Specified by:
        getTestSplit in interface IMultilabelCrossValidation
        Parameters:
        data - The data from which to derive the split
        seed - The seed possibly used by the implementation class to derive the split
        fold - The number of the fold which is the testing fold
        splitInfo - 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: IMultilabelCrossValidation
        Gets 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:
        getTrainSplit in interface IMultilabelCrossValidation
        Parameters:
        data - The data from which to derive the split
        seed - The seed possibly used by the implementation class to derive the split
        fold - 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
      • getSplitSeparator

        public java.lang.String getSplitSeparator()
        Description copied from interface: IMultilabelCrossValidation
        Get 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:
        getSplitSeparator in interface IMultilabelCrossValidation
        Returns:
        The slit separator used by the specific implementation of this interface