public class BasicRegressionPerformanceEvaluator extends AbstractMOAObject implements RegressionPerformanceEvaluator
Modifier and Type | Field and Description |
---|---|
protected double |
averageError |
protected double |
averageTargetError |
protected double |
squareError |
protected double |
squareTargetError |
protected double |
sumTarget |
protected double |
weightObserved |
Constructor and Description |
---|
BasicRegressionPerformanceEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(weka.core.Instance inst,
double[] prediction)
Adds a learning result to this evaluator.
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getMeanError() |
Measurement[] |
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.
|
double |
getSquareError() |
double |
getTargetMeanError() |
double |
getTargetSquareError() |
double |
getTotalWeightObserved() |
void |
reset()
Resets this evaluator.
|
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
public void reset()
ClassificationPerformanceEvaluator
reset
in interface ClassificationPerformanceEvaluator
public void addResult(weka.core.Instance inst, double[] prediction)
ClassificationPerformanceEvaluator
addResult
in interface ClassificationPerformanceEvaluator
inst
- the instance to be classifiedprediction
- 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 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 indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.