java.io.Serializable
, CapabilitiesHandler
, LearningPerformanceEvaluator<Example<Instance>>
, MOAObject
public class BasicConceptDriftPerformanceEvaluator extends AbstractMOAObject implements LearningPerformanceEvaluator<Example<Instance>>
Modifier and Type | Field | Description |
---|---|---|
protected double |
delay |
|
protected double |
errorPrediction |
|
protected double |
inputValues |
|
protected boolean |
isWarningZone |
|
protected double |
numberChanges |
|
protected double |
numberDetections |
|
protected double |
numberDetectionsOccurred |
|
protected double |
numberWarnings |
|
protected double |
totalDelay |
|
protected double |
weightObserved |
Constructor | Description |
---|---|
BasicConceptDriftPerformanceEvaluator() |
Modifier and Type | Method | Description |
---|---|---|
void |
addResult(Example<Instance> example,
double[] classVotes) |
Adds a learning result to this evaluator.
|
void |
addResult(Example<Instance> testInst,
Prediction prediction) |
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
double |
getInputValues() |
|
double |
getNumberChanges() |
|
double |
getNumberChangesOccurred() |
|
double |
getNumberDetections() |
|
double |
getNumberWarnings() |
|
Measurement[] |
getPerformanceMeasurements() |
Gets the current measurements monitored by this evaluator.
|
double |
getPredictionError() |
|
double |
getTotalDelay() |
|
double |
getTotalWeightObserved() |
|
void |
reset() |
Resets this evaluator.
|
copy, copy, measureByteSize, measureByteSize, toString
getCapabilities
defineImmutableCapabilities
copy, measureByteSize
protected double weightObserved
protected double numberDetections
protected double numberDetectionsOccurred
protected double numberChanges
protected double numberWarnings
protected double delay
protected double errorPrediction
protected double totalDelay
protected boolean isWarningZone
protected double inputValues
public BasicConceptDriftPerformanceEvaluator()
public void reset()
LearningPerformanceEvaluator
reset
in interface LearningPerformanceEvaluator<Example<Instance>>
public void addResult(Example<Instance> example, double[] classVotes)
LearningPerformanceEvaluator
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
example
- the example to be classifiedclassVotes
- an array containing the estimated membership
probabilities of the test instance in each classpublic Measurement[] getPerformanceMeasurements()
LearningPerformanceEvaluator
getPerformanceMeasurements
in interface LearningPerformanceEvaluator<Example<Instance>>
public double getTotalWeightObserved()
public double getNumberDetections()
public double getInputValues()
public double getPredictionError()
public double getNumberChanges()
public double getNumberChangesOccurred()
public double getNumberWarnings()
public double getTotalDelay()
public void getDescription(java.lang.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 addResult(Example<Instance> testInst, Prediction prediction)
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.