Class MonteCarloCrossValidationSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>>

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D>, org.api4.java.common.control.ILoggingCustomizable

    public class MonteCarloCrossValidationSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>>
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D>, org.api4.java.common.control.ILoggingCustomizable
    A DatasetSplitSetGenerator that create k independent splits of the given dataset. The type of split can be configured using the IDatasetSplitter. The parameter k is configured over the variable "repeats"
    • Constructor Detail

      • MonteCarloCrossValidationSplitSetGenerator

        public MonteCarloCrossValidationSplitSetGenerator​(org.api4.java.ai.ml.core.dataset.splitter.IRandomDatasetSplitter<D> datasetSplitter,
                                                          int repeats,
                                                          java.util.Random random)
    • Method Detail

      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • getNumSplitsPerSet

        public int getNumSplitsPerSet()
        Specified by:
        getNumSplitsPerSet in interface org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>>
      • getNumFoldsPerSplit

        public int getNumFoldsPerSplit()
        Specified by:
        getNumFoldsPerSplit in interface org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>>
      • nextSplitSet

        public org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSet<D> nextSplitSet​(D data)
                                                                                       throws java.lang.InterruptedException,
                                                                                              org.api4.java.ai.ml.core.dataset.splitter.SplitFailedException
        Specified by:
        nextSplitSet in interface org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>>
        Throws:
        java.lang.InterruptedException
        org.api4.java.ai.ml.core.dataset.splitter.SplitFailedException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object