# Where is the confusion matrix saved on the dashboard?

**URL:** <https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689>\
**Category:** W&B Help\
**Created:** [July 1, 2022, 5:02pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689 "2022-07-01T17:02:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesllo](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@mesllo](https://community.wandb.ai/u/mesllo)\
**Post date:** [July 1, 2022, 5:02pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/1 "2022-07-01T17:02:48Z")

</div>

I’ve logged a confusion matrix like the below but I cannot find it listed anywhere on the dashboard of my project for any run. Indeed, I logged this for every step of the training (not every epoch). So where is the confusion matrix stored?

```auto
wandb.log({"conf_mat" : wandb.plot.confusion_matrix(probs=None,
                                y_true=target, preds=pred[0],
                                class_names=class_names)})

```

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 1, 2022, 10:19pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/2 "2022-07-01T22:19:29Z")

</div>

Hi @mesllo ,

Would be happy to look into this for you. The matrix will be logged under the custom charts panel. Can you please provide the following:

- Wandb Version you are using
- Link to workspace where matrix isn’t being logged
- Full traceback if available
- Also, if possible, a working colab with code example to take an attempt at replicating your work

Thanks,

---

<div class="post-metadata">

**Author:** ![mesllo](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@mesllo](https://community.wandb.ai/u/mesllo)\
**Post date:** [July 3, 2022, 4:54pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/3 "2022-07-03T16:54:02Z")

</div>

I found out I had a bug in my code, now it is showing. However, I’d like to show the counts for all steps rather than a single one. How I can use log() to aggregate all the counts for the confusion matrix like we do for loss and such?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 15, 2022, 1:11am UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/4 "2022-07-15T01:11:09Z")

</div>

HI @mesllo , I’m glad you discovered that bug that was impacting your chart. In regards to show counts for all steps, that’s not currently doable directly. This would have to be done locally where you keep track of your class predictions per step, aggregate the results and then log the confusion matrix to wandb.

Although this doesn’t address your particular request, you can generate a step slider for your matrix, see [here](https://docs.wandb.ai/ref/app/features/custom-charts#how-to-show-a-step-slider-in-a-custom-chart), and you can see your confusion matrix results per step.

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 20, 2022, 6:37pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/5 "2022-07-20T18:37:12Z")

</div>

Hi @mesllo ,

Since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [September 18, 2022, 6:37pm UTC](https://community.wandb.ai/t/where-is-the-confusion-matrix-saved-on-the-dashboard/2689/6 "2022-09-18T18:37:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
