接口 Prediction
- 所有已知实现类:
NominalPrediction
,NumericPrediction
public interface Prediction
Encapsulates a single evaluatable prediction: the predicted value plus the
actual class value.
- 版本:
- $Revision: 1.7 $
- 作者:
- Len Trigg (len@reeltwo.com)
-
字段概要
字段 -
方法概要
-
字段详细资料
-
MISSING_VALUE
static final double MISSING_VALUEConstant representing a missing value. This should have the same value as weka.core.Instance.MISSING_VALUE
-
-
方法详细资料
-
weight
double weight()Gets the weight assigned to this prediction. This is typically the weight of the test instance the prediction was made for.- 返回:
- the weight assigned to this prediction.
-
actual
double actual()Gets the actual class value.- 返回:
- the actual class value, or MISSING_VALUE if no prediction was made.
-
predicted
double predicted()Gets the predicted class value.- 返回:
- the predicted class value, or MISSING_VALUE if no prediction was made.
-