public class StreamingClassificationPerformanceEvaluator
extends org.apache.samoa.moa.AbstractMOAObject
implements org.apache.samoa.evaluation.ClassificationPerformanceEvaluator
Modifier and Type | Field and Description |
---|---|
protected double[] |
columnKappa |
protected long[] |
falseNegative |
protected long[] |
falsePositive |
protected int |
numClasses |
protected double[] |
rowKappa |
protected long[] |
support |
protected long[] |
trueNegative |
protected long[] |
truePositive |
protected double |
weightCorrect |
protected double |
weightObserved |
Constructor and Description |
---|
StreamingClassificationPerformanceEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(org.apache.samoa.instances.Instance inst,
double[] classVotes) |
void |
getDescription(StringBuilder sb,
int indent) |
double |
getFractionCorrectlyClassified() |
double |
getFractionIncorrectlyClassified() |
double |
getKappaStatistic() |
double |
getKappaTemporalStatistic() |
org.apache.samoa.moa.core.Measurement[] |
getPerformanceMeasurements() |
double |
getTotalWeightObserved() |
void |
reset() |
void |
reset(int numClasses) |
copy, copy, measureByteSize, measureByteSize, toString
protected int numClasses
protected long[] support
protected long[] truePositive
protected long[] falsePositive
protected long[] trueNegative
protected long[] falseNegative
protected double weightObserved
protected double weightCorrect
protected double[] columnKappa
protected double[] rowKappa
public StreamingClassificationPerformanceEvaluator()
public void reset()
reset
in interface org.apache.samoa.evaluation.PerformanceEvaluator
public void reset(int numClasses)
public void addResult(org.apache.samoa.instances.Instance inst, double[] classVotes)
addResult
in interface org.apache.samoa.evaluation.PerformanceEvaluator
public org.apache.samoa.moa.core.Measurement[] getPerformanceMeasurements()
getPerformanceMeasurements
in interface org.apache.samoa.evaluation.PerformanceEvaluator
public void getDescription(StringBuilder sb, int indent)
getDescription
in interface org.apache.samoa.moa.MOAObject
public double getTotalWeightObserved()
public double getFractionCorrectlyClassified()
public double getFractionIncorrectlyClassified()
public double getKappaStatistic()
public double getKappaTemporalStatistic()
Copyright © 2017 WSO2. All rights reserved.