|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.evaluation.NumericPrediction
Encapsulates an evaluatable numeric prediction: the predicted class value plus the actual class value.
Field Summary | |
private double |
m_Actual
The actual class value |
private double |
m_Predicted
The predicted class value |
private double |
m_Weight
The weight assigned to this prediction |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double m_Actual
private double m_Predicted
private double m_Weight
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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |