> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ConfusionMatrix オブジェクト (IConfusionMatrix インターフェイス)

このオブジェクトは、分類モデルの混同行列を表します。混同行列は正方行列のテーブルで、各セルには、カテゴリ \<row-name> に属するにもかかわらずカテゴリ \<column-name> に分類されたオブジェクトの数が格納されます。対角線上のセルには、各カテゴリで正しく割り当てられた要素の数が格納されます。

行列のサイズはカテゴリ数に 1 を加えた値です。最初の列には、各カテゴリで分類に失敗したオブジェクトの数が表示されます。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| **ClassNames** | [**StringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/stringscollection.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | カテゴリ名 (出現順) 。行は実際のカテゴリに、列は分類モデルが予測したカテゴリに対応します。 |
| [**Element**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/confusionmatrix-element.md) | [**整数**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md)、読み取り専用 | 行列のセルの値。 |
| [**ElementEx**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/confusionmatrix-elementex.md) | [**整数**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md)、読み取り専用 | 行列のセルの値。 |
| **Size** | [**整数**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md)、読み取り専用 | 混同行列の行数。カテゴリ数に 1 を加えた値と等しくなります。追加の列は、モデルが分類できなかったオブジェクトに対応します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/ConfusionMatrix.gif?s=bcfa71b26c826e1b0de19606368478f3)

## 関連項目

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
