Interface ISamplingAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,A extends ASamplingAlgorithm<D>>
-
- Type Parameters:
A
- Type of the sampling algorithm that will be created.
- All Known Subinterfaces:
IRerunnableSamplingAlgorithmFactory<D,A>
- All Known Implementing Classes:
ASampleAlgorithmFactory
,GmeansSamplingFactory
,KmeansSamplingFactory
,LabelBasedStratifiedSamplingFactory
,LocalCaseControlSamplingFactory
,OSMACSamplingFactory
,SimpleRandomSamplingFactory
,StratifiedSamplingFactory
,SystematicSamplingFactory
public interface ISamplingAlgorithmFactory<D extends org.api4.java.ai.ml.core.dataset.IDataset<?>,A extends ASamplingAlgorithm<D>>
Interface for a factory, which creates a sampling algorithm.
-
-
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.
-
-