|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ConfusionMatrix specifies the
statistics of the correct predictions and
mispredictions. The rows represent the actual
classes whereas the columns indicate the predicted
class values. The value at entry (j, k) is
the number of predictions made for class j
when k is the predicted class.
CategoryMatrix| Method Summary | |
double |
getAccuracy()
Returns the ratio of the sum of the diagonal entries to the sum of all entries. |
double |
getError()
Returns the sum of the non-diagonal sums where the actual value does not euqal to predicted value, divided by the sum of all cells times 100. |
long |
getNumberOfPredictions(java.lang.Object actualCategoryValue,
java.lang.Object predictedCategoryValue)
Returns the number of predictions for the given class when the actual prediction is actualCategory. |
| Methods inherited from interface javax.datamining.data.CategoryMatrix |
getCategories, getCategorySet, getValue |
| Method Detail |
public double getAccuracy()
The returned value must be a value between 0 and 100.
public double getError()
The returned value must be a value between 0 and 100.
public long getNumberOfPredictions(java.lang.Object actualCategoryValue,
java.lang.Object predictedCategoryValue)
throws JDMException
actualCategory.
actualCategoryValue - The actual target value.predictedCategoryValue - The predicted target value.
JDMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||