public class WindowClassificationPerformanceEvaluator extends AbstractOptionHandler implements ClassificationPerformanceEvaluator
Modifier and Type | Class and Description |
---|---|
class |
WindowClassificationPerformanceEvaluator.Estimator |
Modifier and Type | Field and Description |
---|---|
protected WindowClassificationPerformanceEvaluator.Estimator[] |
classAccuracy |
protected WindowClassificationPerformanceEvaluator.Estimator[] |
columnKappa |
protected double |
lastSeenClass |
protected int |
numClasses |
protected WindowClassificationPerformanceEvaluator.Estimator[] |
rowKappa |
protected double |
TotalweightObserved |
protected WindowClassificationPerformanceEvaluator.Estimator |
weightCorrect |
protected WindowClassificationPerformanceEvaluator.Estimator |
weightCorrectNoChangeClassifier |
protected WindowClassificationPerformanceEvaluator.Estimator |
weightObserved |
IntOption |
widthOption |
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
WindowClassificationPerformanceEvaluator() |
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 |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
reset()
Resets this evaluator.
|
void |
reset(int numClasses) |
copy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public IntOption widthOption
protected double TotalweightObserved
protected WindowClassificationPerformanceEvaluator.Estimator weightObserved
protected WindowClassificationPerformanceEvaluator.Estimator weightCorrect
protected WindowClassificationPerformanceEvaluator.Estimator weightCorrectNoChangeClassifier
protected double lastSeenClass
protected WindowClassificationPerformanceEvaluator.Estimator[] columnKappa
protected WindowClassificationPerformanceEvaluator.Estimator[] rowKappa
protected WindowClassificationPerformanceEvaluator.Estimator[] classAccuracy
protected int numClasses
public WindowClassificationPerformanceEvaluator()
public void reset()
ClassificationPerformanceEvaluator
reset
in interface ClassificationPerformanceEvaluator
public void reset(int numClasses)
public void addResult(weka.core.Instance inst, double[] classVotes)
ClassificationPerformanceEvaluator
addResult
in interface ClassificationPerformanceEvaluator
inst
- the instance to be classifiedclassVotes
- an array containing the estimated membership
probabilities of the test instance in each classpublic Measurement[] getPerformanceMeasurements()
ClassificationPerformanceEvaluator
getPerformanceMeasurements
in interface ClassificationPerformanceEvaluator
public double getTotalWeightObserved()
public double getFractionCorrectlyClassified()
public double getKappaStatistic()
public double getKappaTemporalStatistic()
public double getFractionIncorrectlyClassified()
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to useCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.