public class BasicClassificationPerformanceEvaluator extends AbstractMOAObject implements ClassificationPerformanceEvaluator
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
columnKappa |
protected int |
numClasses |
protected double[] |
rowKappa |
protected double |
weightCorrect |
protected double |
weightObserved |
| Constructor and Description |
|---|
BasicClassificationPerformanceEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(weka.core.Instance inst,
double[] classVotes)
Adds a learning result to this evaluator.
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getFractionCorrectlyClassified() |
double |
getFractionIncorrectlyClassified() |
double |
getKappaStatistic() |
double |
getKappaTemporalStatistic() |
Measurement[] |
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.
|
double |
getTotalWeightObserved() |
void |
reset()
Resets this evaluator.
|
void |
reset(int numClasses) |
copy, copy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, measureByteSizeprotected double weightObserved
protected double weightCorrect
protected double[] columnKappa
protected double[] rowKappa
protected int numClasses
public BasicClassificationPerformanceEvaluator()
public void reset()
ClassificationPerformanceEvaluatorreset in interface ClassificationPerformanceEvaluatorpublic void reset(int numClasses)
public void addResult(weka.core.Instance inst,
double[] classVotes)
ClassificationPerformanceEvaluatoraddResult in interface ClassificationPerformanceEvaluatorinst - the instance to be classifiedclassVotes - an array containing the estimated membership
probabilities of the test instance in each classpublic Measurement[] getPerformanceMeasurements()
ClassificationPerformanceEvaluatorgetPerformanceMeasurements in interface ClassificationPerformanceEvaluatorpublic double getTotalWeightObserved()
public double getFractionCorrectlyClassified()
public double getFractionIncorrectlyClassified()
public double getKappaStatistic()
public double getKappaTemporalStatistic()
public void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.getDescription in interface MOAObjectsb - the stringbuilder to add the descriptionindent - the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.