|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.DistributionClassifier
Abstract classification model that produces (for each test instance) an estimate of the membership in each class (ie. a probability distribution).
Constructor Summary | |
DistributionClassifier()
|
Method Summary | |
double |
classifyInstance(Instance instance)
Classifies the given test instance. |
abstract double[] |
distributionForInstance(Instance instance)
Predicts the class memberships for a given instance. |
Methods inherited from class weka.classifiers.Classifier |
buildClassifier, forName, makeCopies |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DistributionClassifier()
Method Detail |
public abstract double[] distributionForInstance(Instance instance) throws java.lang.Exception
instance
- the instance to be classifiedjava.lang.Exception
- if distribution could not be
computed successfullypublic double classifyInstance(Instance instance) throws java.lang.Exception
classifyInstance
in class Classifier
instance
- the instance to be classifiedjava.lang.Exception
- if an error occurred during the prediction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |