ConfusionMatrix Object (IConfusionMatrix Interface)

This object represents the confusion matrix for a classification model. The confusion matrix is a square table in which each cell contains the number of objects classified into category <column-name> while belonging to category <row-name>. The diagonal cells will contain the number of correctly assigned elements for each category.

The matrix size is the number of categories plus one, with the last column showing the number of objects in each category for which classification failed.


Name Type Description
AxisLabels StringsCollection, read-only The names of the categories in the order in which they appear. The rows correspond to the actual category, the columns — to the category predicted by the classification model.
Element int, read-only Returns the element in the selected cell.
Size int, read-only The number of rows in the confusion matrix. It is equal to the number of categories plus 1: the extra column corresponds to the objects which the model was unable to classify.

Related objects

Object Diagram


This object is used in the Classification demo tool.

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.