Class LocalCaseControlSamplingFactory

    • Constructor Detail

      • LocalCaseControlSamplingFactory

        public LocalCaseControlSamplingFactory()
    • Method Detail

      • setPreSampleSize

        public void setPreSampleSize​(int preSampleSize)
        Set the size of the sample the pilot estimator will be trained with. Default is half the dataset.
        Parameters:
        preSampleSize -
      • getPilot

        public org.api4.java.ai.ml.classification.IClassifier getPilot()
      • setPilot

        public void setPilot​(org.api4.java.ai.ml.classification.IClassifier pilot)
      • getAlgorithm

        public LocalCaseControlSampling getAlgorithm​(int sampleSize,
                                                     org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?> 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<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>,​LocalCaseControlSampling>
        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.