public interface Classifier
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances data)
Generates a classifier.
|
double |
classifyInstance(Instance instance)
Classifies the given test instance.
|
double[] |
distributionForInstance(Instance instance)
Predicts the class memberships for a given instance.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this classifier.
|
void buildClassifier(Instances data) throws Exception
data - set of instances serving as training dataException - if the classifier has not been
generated successfullydouble classifyInstance(Instance instance) throws Exception
instance - the instance to be classifiedException - if an error occurred during the predictiondouble[] distributionForInstance(Instance instance) throws Exception
instance - the instance to be classifiedException - if distribution could not be
computed successfullyCapabilities getCapabilities()
CapabilitiesCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.