public class FilteredClassifierUpdateable extends weka.classifiers.meta.FilteredClassifier implements weka.classifiers.UpdateableClassifier, UpdateableBatchProcessor
-F <filter specification> Full class name of filter to use, followed by filter options. eg: "weka.filters.unsupervised.attribute.Remove -V -R 1,2"
-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.bayes.NaiveBayesUpdateable)
Options specific to classifier weka.classifiers.bayes.NaiveBayesUpdateable:
-K Use kernel density estimator rather than normal distribution for numeric attributes
-D Use supervised discretization to process numeric attributes
-O Display model in old format (good when there are many classes)
UpdateableClassifier
,
Serialized FormConstructor and Description |
---|
FilteredClassifierUpdateable()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
batchFinished()
Signal that the training data is finished (for now).
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this classifier.
|
static void |
main(java.lang.String[] args)
Main method for running this classifier.
|
void |
setClassifier(weka.classifiers.Classifier value)
Set the base learner.
|
void |
updateClassifier(weka.core.Instance instance)
Updates a classifier using the given instance.
|
batchSizeTipText, buildClassifier, distributionForInstance, distributionsForInstances, done, doNotCheckForModifiedClassAttributeTipText, filterTipText, generatePartition, getBatchSize, getCapabilities, getDoNotCheckForModifiedClassAttribute, getFilter, getMembershipValues, getOptions, getResume, graph, graphType, implementsMoreEfficientBatchPrediction, initializeClassifier, listOptions, next, numElements, resumeTipText, setBatchSize, setDoNotCheckForModifiedClassAttribute, setFilter, setOptions, setResume, toString
getSeed, seedTipText, setSeed
classifierTipText, getClassifier, postExecution, preExecution
classifyInstance, debugTipText, doNotCheckCapabilitiesTipText, forName, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
public FilteredClassifierUpdateable()
public java.lang.String globalInfo()
globalInfo
in class weka.classifiers.meta.FilteredClassifier
public void setClassifier(weka.classifiers.Classifier value)
setClassifier
in class weka.classifiers.SingleClassifierEnhancer
value
- the classifier to use.public void updateClassifier(weka.core.Instance instance) throws java.lang.Exception
updateClassifier
in interface weka.classifiers.UpdateableClassifier
instance
- the instance to includedjava.lang.Exception
- if instance could not be incorporated successfully or not
successfully filteredpublic java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.classifiers.meta.FilteredClassifier
public static void main(java.lang.String[] args)
args
- use -h for overview on parameterspublic void batchFinished() throws java.lang.Exception
UpdateableBatchProcessor
batchFinished
in interface UpdateableBatchProcessor
java.lang.Exception
- if a problem occurs