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

    • Method Detail

      • getAlgorithm

        public StratifiedSampling<D> getAlgorithm​(int sampleSize,
                                                  D inputDataset,
                                                  java.util.Random random)
        Description copied from interface: ISamplingAlgorithmFactory
        After the necessary config is done, this method returns a fully configured instance of a sampling algorithm.
        Specified by:
        getAlgorithm in interface ISamplingAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,​StratifiedSampling<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>>>
        Parameters:
        sampleSize - Desired size of the sample that will be created.
        inputDataset - Dataset where the sample will be drawn from.
        random - Random object to make samples reproducible.
        Returns:
        Configured sampling algorithm object.