|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.evaluation.NumericPrediction
Encapsulates an evaluatable numeric prediction: the predicted class value plus the actual class value.
Field Summary |
Fields inherited from interface weka.classifiers.evaluation.Prediction |
MISSING_VALUE |
Constructor Summary | |
NumericPrediction(double actual,
double predicted)
Creates the NumericPrediction object with a default weight of 1.0. |
|
NumericPrediction(double actual,
double predicted,
double weight)
Creates the NumericPrediction object. |
Method Summary | |
double |
actual()
Gets the actual class value. |
double |
error()
Calculates the prediction error. |
double |
predicted()
Gets the predicted class value. |
java.lang.String |
toString()
Gets a human readable representation of this prediction. |
double |
weight()
Gets the weight assigned to this prediction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NumericPrediction(double actual, double predicted)
actual
- the actual value, or MISSING_VALUE.predicted
- the predicted value, or MISSING_VALUE.public NumericPrediction(double actual, double predicted, double weight)
actual
- the actual value, or MISSING_VALUE.predicted
- the predicted value, or MISSING_VALUE.weight
- the weight assigned to the prediction.Method Detail |
public double actual()
actual
in interface Prediction
public double predicted()
predicted
in interface Prediction
public double weight()
weight
in interface Prediction
public double error()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London