public class StratifiedSampling<I extends IInstance> extends ASamplingAlgorithm<I>
sample, sampleSize| Constructor and Description |
|---|
StratifiedSampling(IStratiAmountSelector<I> stratiAmountSelector,
IStratiAssigner<I> stratiAssigner,
java.util.Random random,
IDataset<I> input)
Constructor for Stratified Sampling.
|
| Modifier and Type | Method and Description |
|---|---|
IDataset<I>[] |
getStrati() |
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
nextWithException() |
void |
setStrati(IDataset<I>[] strati) |
call, doInactiveStep, setSampleSizeactivate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getLoggerName, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setLoggerName, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownpublic StratifiedSampling(IStratiAmountSelector<I> stratiAmountSelector, IStratiAssigner<I> stratiAssigner, java.util.Random random, IDataset<I> input)
stratiAmountSelector - The custom selector for the used amount of strati.stratiAssigner - Custom logic to assign datapoints into strati.random - Random object for sampling inside of the strati.public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent nextWithException()
throws java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException