Class FixedDataSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>

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

    public class FixedDataSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.evaluation.execution.IFixedDatasetSplitSetGenerator<D>, org.api4.java.common.control.ILoggingCustomizable
    This is an IDatasetSplitSetGenerator that produces splits for one initially fixed dataset. It can be used as a split generator in a context where the data are not passed along the usage of the splitter.
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedDataSplitSetGenerator​(D data, org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D> generator)  
    • Constructor Detail

      • FixedDataSplitSetGenerator

        public FixedDataSplitSetGenerator​(D data,
                                          org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D> generator)
    • Method Detail

      • 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.IDataset<?>>
      • 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.IDataset<?>>
      • nextSplitSet

        public org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSet<D> nextSplitSet()
                                                                                       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.IFixedDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>
        Throws:
        java.lang.InterruptedException
        org.api4.java.ai.ml.core.dataset.splitter.SplitFailedException
      • getDataset

        public D getDataset()
        Specified by:
        getDataset in interface org.api4.java.ai.ml.core.evaluation.execution.IFixedDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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