Class SimpleRandomSamplingFactory<I,D extends IOrderedDataset<I>>
- java.lang.Object
-
- ai.libs.jaicore.ml.core.dataset.sampling.inmemory.factories.SimpleRandomSamplingFactory<I,D>
-
- All Implemented Interfaces:
ISamplingAlgorithmFactory<I,D,SimpleRandomSampling<I,D>>
public class SimpleRandomSamplingFactory<I,D extends IOrderedDataset<I>> extends java.lang.Object implements ISamplingAlgorithmFactory<I,D,SimpleRandomSampling<I,D>>
-
-
Constructor Summary
Constructors Constructor Description SimpleRandomSamplingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleRandomSampling<I,D>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.
-
-
-
Method Detail
-
getAlgorithm
public SimpleRandomSampling<I,D> getAlgorithm(int sampleSize, D inputDataset, java.util.Random random)
Description copied from interface:ISamplingAlgorithmFactoryAfter the necessary config is done, this method returns a fully configured instance of a sampling algorithm.- Specified by:
getAlgorithmin interfaceISamplingAlgorithmFactory<I,D extends IOrderedDataset<I>,SimpleRandomSampling<I,D extends IOrderedDataset<I>>>- 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.
-
-