public interface Classifier extends MOAObject, OptionHandler, AWTRenderable
| Modifier and Type | Method and Description |
|---|---|
Classifier |
copy()
Produces a copy of this classifier.
|
boolean |
correctlyClassifies(weka.core.Instance inst)
Gets whether this classifier correctly classifies an instance.
|
InstancesHeader |
getModelContext()
Gets the reference to the header of the data stream.
|
Measurement[] |
getModelMeasurements()
Gets the current measurements of this classifier.
|
Classifier[] |
getSubClassifiers()
Gets the classifiers of this ensemble.
|
double[] |
getVotesForInstance(weka.core.Instance inst)
Predicts the class memberships for a given instance.
|
boolean |
isRandomizable()
Gets whether this classifier needs a random seed.
|
void |
resetLearning()
Resets this classifier.
|
void |
setModelContext(InstancesHeader ih)
Sets the reference to the header of the data stream.
|
void |
setRandomSeed(int s)
Sets the seed for random number generation.
|
boolean |
trainingHasStarted()
Gets whether training has started.
|
double |
trainingWeightSeenByModel()
Gets the sum of the weights of the instances that have been used
by this classifier during the training in
trainOnInstance |
void |
trainOnInstance(weka.core.Instance inst)
Trains this classifier incrementally using the given instance.
|
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUsegetDescription, measureByteSizegetAWTRenderervoid setModelContext(InstancesHeader ih)
Instances.
This header is needed to know the number of classes and attributesih - the reference to the data stream headerInstancesHeader getModelContext()
Instances.
This header is needed to know the number of classes and attributesboolean isRandomizable()
void setRandomSeed(int s)
s - the seedboolean trainingHasStarted()
double trainingWeightSeenByModel()
trainOnInstancevoid resetLearning()
void trainOnInstance(weka.core.Instance inst)
inst - the instance to be used for trainingdouble[] getVotesForInstance(weka.core.Instance inst)
inst - the instance to be classifiedboolean correctlyClassifies(weka.core.Instance inst)
inst - the instance to be classifiedMeasurement[] getModelMeasurements()
Classifier[] getSubClassifiers()
Classifier copy()
copy in interface MOAObjectcopy in interface OptionHandlerCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.