ChatDiagram
machine-learning · education

Produce Image Classifier Confusion Matrix

This example evaluates an image classifier trained to identify apples, oranges and bananas. The diagonal values are the correctly classified images. Apples and oranges create more confusion with each other than either does with bananas, which can guide a review of the training images, lighting conditions or class definitions. A confusion matrix is valuable because a single overall accuracy can hide this pattern. Before drawing conclusions, check that the test set contains representative images and that no class is much smaller than the others. This is a teaching example, so it uses simple labels and a compact three-class layout.

種類 ヒートマップエンジン echarts-heatmap更新日 2026/9/24
Produce Images: Actual vs Predicted
Drawing preview
依頼内容

“Create a confusion matrix heatmap for a produce-image classifier with actual rows and predicted columns Apple, Orange and Banana. Use counts: Apple 78, 6, 1; Orange 8, 72, 4; Banana 2, 3, 81.”

次はこちらAdd a class named Pear with its counts.Change the title to Produce Image Classifier — Test Set.
この図に含まれるもの

図の背後にある意思決定を読み解く。

01Use class labels

Make mistakes understandable.

02Read row patterns

See where each actual class goes.

03Compare diagonal counts

Find strong and weak classes.

Use for a labeled test set where every image has one class.

ヒートマップのテンプレートをすべて見る →

よくある質問

よくある質問

Why are rows actual classes?

That layout shows where examples of each true class were predicted.

What can cause class confusion?

Similar appearance, weak training data or inconsistent labels can contribute.

Is accuracy enough?

No. The matrix reveals the distribution of errors across classes.