All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Interface weka.classifiers.evaluation.Prediction

public interface Prediction
Encapsulates a single evaluatable prediction: the predicted value plus the actual class value.

Author:
Len Trigg (len@intelligenesis.net)

Variable Index

 o MISSING_VALUE
Constant representing a missing value.

Method Index

 o actual()
Gets the actual class value.
 o predicted()
Gets the predicted class value.
 o weight()
Gets the weight assigned to this prediction.

Variables

 o MISSING_VALUE
 public static final double MISSING_VALUE
Constant representing a missing value. This should have the same value as weka.core.Instance.MISSING_VALUE

Methods

 o weight
 public abstract 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.
 o actual
 public abstract double actual()
Gets the actual class value.

Returns:
the actual class value, or MISSING_VALUE if no prediction was made.
 o predicted
 public abstract double predicted()
Gets the predicted class value.

Returns:
the predicted class value, or MISSING_VALUE if no prediction was made.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home