Class FixedDataSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>
- java.lang.Object
-
- ai.libs.jaicore.ml.core.evaluation.splitsetgenerator.FixedDataSplitSetGenerator<D>
-
- 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.ILoggingCustomizableThis 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DgetDataset()java.lang.StringgetLoggerName()intgetNumFoldsPerSplit()intgetNumSplitsPerSet()org.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSet<D>nextSplitSet()voidsetLoggerName(java.lang.String name)java.lang.StringtoString()
-
-
-
Method Detail
-
getNumSplitsPerSet
public int getNumSplitsPerSet()
- Specified by:
getNumSplitsPerSetin interfaceorg.api4.java.ai.ml.core.evaluation.execution.IDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>
-
getNumFoldsPerSplit
public int getNumFoldsPerSplit()
- Specified by:
getNumFoldsPerSplitin interfaceorg.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:
nextSplitSetin interfaceorg.api4.java.ai.ml.core.evaluation.execution.IFixedDatasetSplitSetGenerator<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>- Throws:
java.lang.InterruptedExceptionorg.api4.java.ai.ml.core.dataset.splitter.SplitFailedException
-
getDataset
public D getDataset()
- Specified by:
getDatasetin interfaceorg.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:
toStringin classjava.lang.Object
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
-