Package moa.evaluation
Class BasicConceptDriftPerformanceEvaluator
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.evaluation.BasicConceptDriftPerformanceEvaluator
-
- All Implemented Interfaces:
Serializable
,CapabilitiesHandler
,LearningPerformanceEvaluator<Example<Instance>>
,MOAObject
public class BasicConceptDriftPerformanceEvaluator extends AbstractMOAObject implements LearningPerformanceEvaluator<Example<Instance>>
- See Also:
- Serialized Form
-
-
Field Summary
Fields 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 Summary
Constructors Constructor Description BasicConceptDriftPerformanceEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods 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(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.-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.evaluation.LearningPerformanceEvaluator
defineImmutableCapabilities
-
Methods inherited from interface moa.MOAObject
copy, measureByteSize
-
-
-
-
Field Detail
-
weightObserved
protected double weightObserved
-
numberDetections
protected double numberDetections
-
numberDetectionsOccurred
protected double numberDetectionsOccurred
-
numberChanges
protected double numberChanges
-
numberWarnings
protected double numberWarnings
-
delay
protected double delay
-
errorPrediction
protected double errorPrediction
-
totalDelay
protected double totalDelay
-
isWarningZone
protected boolean isWarningZone
-
inputValues
protected double inputValues
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:LearningPerformanceEvaluator
Resets this evaluator. It must be similar to starting a new evaluator from scratch.- Specified by:
reset
in interfaceLearningPerformanceEvaluator<Example<Instance>>
-
addResult
public void addResult(Example<Instance> example, double[] classVotes)
Description copied from interface:LearningPerformanceEvaluator
Adds a learning result to this evaluator.- Specified by:
addResult
in interfaceLearningPerformanceEvaluator<Example<Instance>>
- Parameters:
example
- the example to be classifiedclassVotes
- an array containing the estimated membership probabilities of the test instance in each class
-
getPerformanceMeasurements
public Measurement[] getPerformanceMeasurements()
Description copied from interface:LearningPerformanceEvaluator
Gets the current measurements monitored by this evaluator.- Specified by:
getPerformanceMeasurements
in interfaceLearningPerformanceEvaluator<Example<Instance>>
- Returns:
- an array of measurements monitored by this evaluator
-
getTotalWeightObserved
public double getTotalWeightObserved()
-
getNumberDetections
public double getNumberDetections()
-
getInputValues
public double getInputValues()
-
getPredictionError
public double getPredictionError()
-
getNumberChanges
public double getNumberChanges()
-
getNumberChangesOccurred
public double getNumberChangesOccurred()
-
getNumberWarnings
public double getNumberWarnings()
-
getTotalDelay
public double getTotalDelay()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Specified by:
getDescription
in interfaceMOAObject
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
addResult
public void addResult(Example<Instance> testInst, Prediction prediction)
- Specified by:
addResult
in interfaceLearningPerformanceEvaluator<Example<Instance>>
-
-