ai.libs.jaicore.ml.core.dataset.sampling.inmemory

Class ASamplingAlgorithm<I extends IInstance>

  • java.lang.Object
    • ai.libs.jaicore.basic.algorithm.AAlgorithm<IDataset<I>,IDataset<I>>
      • ai.libs.jaicore.ml.core.dataset.sampling.inmemory.ASamplingAlgorithm<I>
  • All Implemented Interfaces:
    ai.libs.jaicore.basic.algorithm.IAlgorithm<IDataset<I>,IDataset<I>>, ai.libs.jaicore.basic.Cancelable, ai.libs.jaicore.basic.ILoggingCustomizable, java.lang.Iterable<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>, java.util.concurrent.Callable<IDataset<I>>, java.util.Iterator<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>
    Direct Known Subclasses:
    CaseControlLikeSampling, ClusterSampling, SimpleRandomSampling, StratifiedSampling, SystematicSampling


    public abstract class ASamplingAlgorithm<I extends IInstance>extends ai.libs.jaicore.basic.algorithm.AAlgorithm<IDataset<I>,IDataset<I>>
    An abstract class for sampling algorithms providing basic functionality of an algorithm.
    • Field Summary

      Fields 
      Modifier and TypeField and Description
      protected IDataset<I>sample 
      protected java.lang.IntegersampleSize 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      IDataset<I>call() 
      protected ai.libs.jaicore.basic.algorithm.events.AlgorithmEventdoInactiveStep() 
      voidsetSampleSize(int size) 
      • Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm

        activate, 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, unregisterThreadAndShutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ai.libs.jaicore.basic.algorithm.IAlgorithm

        nextWithException
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • sampleSize

        protected java.lang.Integer sampleSize
    • Constructor Detail

      • ASamplingAlgorithm

        protected ASamplingAlgorithm(IDataset<I> input)
    • Method Detail

      • setSampleSize

        public void setSampleSize(int size)
      • call

        public IDataset<I> call()                 throws java.lang.InterruptedException,                        ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException,                        ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
        Throws:
        java.lang.InterruptedException
        ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException
        ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
      • doInactiveStep

        protected ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent doInactiveStep()                                                                        throws ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
        Throws:
        ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14