Interface ISamplingAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,​A extends ASamplingAlgorithm<D>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      A getAlgorithm​(int sampleSize, D inputDataset, java.util.Random random)
      After the necessary config is done, this method returns a fully configured instance of a sampling algorithm.
      A getAlgorithm​(D inputDataset)
      After the necessary config is done, this method returns a fully configured instance of a sampling algorithm.
    • Method Detail

      • getAlgorithm

        A getAlgorithm​(int sampleSize,
                       D inputDataset,
                       java.util.Random random)
        After the necessary config is done, this method returns a fully configured instance of a sampling algorithm.
        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.
      • getAlgorithm

        A getAlgorithm​(D inputDataset)
        After the necessary config is done, this method returns a fully configured instance of a sampling algorithm. Here, it is assumed that random aspects or sample sizes have already been defined before