weka.classifiers.evaluation
Interface Prediction
-
- All Known Implementing Classes:
- NominalPrediction, NumericPrediction
public interface PredictionEncapsulates a single evaluatable prediction: the predicted value plus the actual class value.
-
-
Field Summary
Fields Modifier and Type Field and Description static doubleMISSING_VALUEConstant representing a missing value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doubleactual()Gets the actual class value.doublepredicted()Gets the predicted class value.doubleweight()Gets the weight assigned to this prediction.
-
-
-
Field Detail
-
MISSING_VALUE
static final double MISSING_VALUE
Constant representing a missing value. This should have the same value as weka.core.Instance.MISSING_VALUE
-
-
Method Detail
-
weight
double weight()
Gets the weight assigned to this prediction. This is typically the weight of the test instance the prediction was made for.- Returns:
- the weight assigned to this prediction.
-
actual
double actual()
Gets the actual class value.- Returns:
- the actual class value, or MISSING_VALUE if no prediction was made.
-
predicted
double predicted()
Gets the predicted class value.- Returns:
- the predicted class value, or MISSING_VALUE if no prediction was made.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG