public interface Classifier extends Learner<Example<Instance>>
Modifier and Type | Method and Description |
---|---|
Classifier |
copy()
Produces a copy of this learner.
|
boolean |
correctlyClassifies(Instance inst)
Gets whether this classifier correctly classifies an instance.
|
Prediction |
getPredictionForInstance(Instance inst)
Gets the reference to the header of the data stream.
|
Classifier[] |
getSubClassifiers()
Gets the classifiers of this ensemble.
|
double[] |
getVotesForInstance(Instance inst)
Predicts the class memberships for a given instance.
|
void |
trainOnInstance(Instance inst)
Trains this learner incrementally using the given example.
|
getModel, getModelContext, getModelMeasurements, getPredictionForInstance, getSublearners, getVotesForInstance, isRandomizable, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
getAWTRenderer
Classifier[] getSubClassifiers()
Classifier copy()
copy
in interface MOAObject
copy
in interface OptionHandler
boolean correctlyClassifies(Instance inst)
inst
- the instance to be classifiedvoid trainOnInstance(Instance inst)
inst
- the instance to be used for trainingdouble[] getVotesForInstance(Instance inst)
inst
- the instance to be classifiedPrediction getPredictionForInstance(Instance inst)
Instances
. This header is needed to know the number of
classes and attributesCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.