public class BasicRegressionPerformanceEvaluator extends AbstractMOAObject implements RegressionPerformanceEvaluator
Modifier and Type | Field and Description |
---|---|
protected double |
averageError |
protected double |
averageErrorDaysBeforeFailure |
protected double |
averageErrorForFailures |
protected double |
averageTargetError |
protected int |
labelWindowSize |
protected int |
numFailures |
protected double |
squareError |
protected double |
squareErrorForFailures |
protected double |
squareTargetError |
protected double |
sumTarget |
protected double |
weightObserved |
Constructor and Description |
---|
BasicRegressionPerformanceEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(Example<Instance> example,
double[] prediction) |
void |
addResult(Example<Instance> example,
Prediction prediction)
Adds a learning result to this evaluator.
|
void |
addResultDelay(List<Instance> instances) |
double |
getAverageErrorDaysBeforeFailure() |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getMeanError() |
double |
getMeanErrorForFailures() |
int |
getNumFailures() |
Measurement[] |
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.
|
double |
getSquareError() |
double |
getSquareErrorForFailures() |
double |
getTargetMeanError() |
double |
getTargetSquareError() |
double |
getTotalWeightObserved() |
void |
reset()
Resets this evaluator.
|
void |
setLabelWindowSize(int labelWindowSize) |
copy, copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
protected double weightObserved
protected double squareError
protected double averageError
protected double sumTarget
protected double squareTargetError
protected double averageTargetError
protected double averageErrorDaysBeforeFailure
protected double averageErrorForFailures
protected double squareErrorForFailures
protected int numFailures
protected int labelWindowSize
public void reset()
LearningPerformanceEvaluator
reset
in interface LearningPerformanceEvaluator<Example<Instance>>
public void setLabelWindowSize(int labelWindowSize)
public void addResult(Example<Instance> example, double[] prediction)
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
public Measurement[] getPerformanceMeasurements()
LearningPerformanceEvaluator
getPerformanceMeasurements
in interface LearningPerformanceEvaluator<Example<Instance>>
public int getNumFailures()
public double getAverageErrorDaysBeforeFailure()
public double getMeanErrorForFailures()
public double getSquareErrorForFailures()
public double getTotalWeightObserved()
public double getMeanError()
public double getSquareError()
public double getTargetMeanError()
public double getTargetSquareError()
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 addResult(Example<Instance> example, Prediction prediction)
LearningPerformanceEvaluator
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.