Class StoppableRandomizableClassifier

  • All Implemented Interfaces:
    Stoppable, StoppableWithFeedback, Serializable, Cloneable, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, weka.core.Randomizable, weka.core.RevisionHandler

    public abstract class StoppableRandomizableClassifier
    extends weka.classifiers.RandomizableClassifier
    implements StoppableWithFeedback
    Ancestor for randomizable classifiers that can be stopped.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean m_Stopped
      whether the classifier was stopped.
      • Fields inherited from class weka.classifiers.RandomizableClassifier

        m_Seed
      • Fields inherited from class weka.classifiers.AbstractClassifier

        BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isStopped()
      Whether the execution has been stopped.
      void stopExecution()
      Stops the execution.
      • Methods inherited from class weka.classifiers.RandomizableClassifier

        getOptions, getSeed, listOptions, seedTipText, setOptions, setSeed
      • Methods inherited from class weka.classifiers.AbstractClassifier

        batchSizeTipText, classifyInstance, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
      • Methods inherited from interface weka.classifiers.Classifier

        buildClassifier
    • Field Detail

      • m_Stopped

        protected boolean m_Stopped
        whether the classifier was stopped.
    • Constructor Detail

      • StoppableRandomizableClassifier

        public StoppableRandomizableClassifier()
    • Method Detail

      • stopExecution

        public void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable
      • isStopped

        public boolean isStopped()
        Whether the execution has been stopped.
        Specified by:
        isStopped in interface StoppableWithFeedback
        Returns:
        true if stopped