|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.evaluation.NumericPrediction
public class 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. |
|
NumericPrediction(double actual,
double predicted,
double weight,
double[][] predInt)
Creates the NumericPrediction object. |
|
| Method Summary | |
|---|---|
double |
actual()
Gets the actual class value. |
double |
error()
Calculates the prediction error. |
java.lang.String |
getRevision()
Returns the revision string. |
double |
predicted()
Gets the predicted class value. |
double[][] |
predictionIntervals()
Returns the predictions intervals. |
void |
setPredictionIntervals(double[][] predInt)
Sets the prediction intervals for this prediction. |
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.
public NumericPrediction(double actual,
double predicted,
double weight,
double[][] predInt)
actual - the actual value, or MISSING_VALUE.predicted - the predicted value, or MISSING_VALUE.weight - the weight assigned to the prediction.predInt - the prediction intervals from classifiers implementing
the IntervalEstimator interface.IntervalEstimator| Method Detail |
|---|
public double actual()
actual in interface Predictionpublic double predicted()
predicted in interface Predictionpublic double weight()
weight in interface Predictionpublic double error()
public void setPredictionIntervals(double[][] predInt)
predInt - the prediction intervalspublic double[][] predictionIntervals()
IntervalEstimator interface.
IntervalEstimatorpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||