Package weka.classifiers
Class StoppableClassifier
- java.lang.Object
-
- weka.classifiers.AbstractClassifier
-
- weka.classifiers.StoppableClassifier
-
- 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.RevisionHandler
- Direct Known Subclasses:
GPD,LinearRegressionJ
public abstract class StoppableClassifier extends weka.classifiers.AbstractClassifier implements StoppableWithFeedback
Ancestor for 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 booleanm_Stoppedwhether the classifier was stopped.
-
Constructor Summary
Constructors Constructor Description StoppableClassifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStopped()Whether the execution has been stopped.voidstopExecution()Stops the execution.-
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, getRevision, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptions
-
-
-
-
Method Detail
-
stopExecution
public void stopExecution()
Stops the execution.- Specified by:
stopExecutionin interfaceStoppable
-
isStopped
public boolean isStopped()
Whether the execution has been stopped.- Specified by:
isStoppedin interfaceStoppableWithFeedback- Returns:
- true if stopped
-
-