接口 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)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final double
    Constant representing a missing value.
  • 方法概要

    修饰符和类型
    方法
    说明
    double
    Gets the actual class value.
    double
    Gets the predicted class value.
    double
    Gets the weight assigned to this prediction.
  • 字段详细资料

    • MISSING_VALUE

      static final double MISSING_VALUE
      Constant 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.