SimpleClassificationStrategy
public interface ClassificationStrategy
Modifier and Type | Method | Description |
---|---|---|
double |
classifyInstance(weka.core.Instance instance) |
Classifies the given test instance.
|
double[] |
distributionForInstance(weka.core.Instance instance) |
Predicts the class memberships for a given instance.
|
double classifyInstance(weka.core.Instance instance) throws java.lang.Exception
instance
- the instance to be classifiedjava.lang.Exception
- if an error occurred during the predictiondouble[] distributionForInstance(weka.core.Instance instance) throws java.lang.Exception
instance
- the instance to be classifiedjava.lang.Exception
- if distribution could not be computed successfully