|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A CategoryMatrix represents a matrix
whose axes are categories. This class supports the
confusion matrix, an output of the test task for a
classification model; the cost matrix, an input to
the build task for a classification model; and the
similarity matrix used in clustering.
| Method Summary | |
java.util.Collection |
getCategories()
Returns a collection of category values used to represent the axes of the matrix. |
CategorySet |
getCategorySet()
Returns the category set that contains categories used in the matrix. |
java.lang.Double |
getValue(java.lang.Object rowCategoryValue,
java.lang.Object columnCategoryValue)
Returns the value in the specified entry. |
| Method Detail |
public java.util.Collection getCategories()
The categories are returned as objects of type integer, double, or string.
public CategorySet getCategorySet()
public java.lang.Double getValue(java.lang.Object rowCategoryValue,
java.lang.Object columnCategoryValue)
throws JDMException
rowCategoryValue - The row index of the entry in the matrix.columnCategoryValue - The column index of the entry in the matrix.
JDMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||