# Plot confusion matrix v2 groupby some config field

**URL:** <https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [April 20, 2024, 4:49pm UTC](https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477 "2024-04-20T16:49:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tankwell](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tankwell](https://community.wandb.ai/u/tankwell)\
**Post date:** [April 20, 2024, 4:49pm UTC](https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477/1 "2024-04-20T16:49:20Z")

</div>

Hey,

I am trying to use the confusion matrix (by `wandb.plot.confusion_matrix`). The proper table is logged, and I am also having the right panel in the run page.

Now, I have runs from multiple sources and I would like to group the results of these runs within the plot. I have seen that this option is available in wandb/confusion\_matrix/v2. I went into the editor and add the correct config field that holds the “source” (just source name) But I could not group by that name (I can choose the “source” key in the right panel but could not get the data plotted)

I was suspecting the name filter there, But I could not understand what the name is used for.

Some help about what to do here would be really appreciated 😊 😊

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/7/72afc593a079498368c168f0e7d1becc0ec8247e.png)

---

<div class="post-metadata">

**Author:** ![joana-marie](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@joana-marie](https://community.wandb.ai/u/joana-marie)\
**Post date:** [April 25, 2024, 9:13am UTC](https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477/2 "2024-04-25T09:13:21Z")

</div>

Hello @tankwell , thank you for writing in and happy to help. Is it possible if you could share a link of your workspace and for privacy you can send it via email: [supportwandb@wandb.com](mailto:supportwandb@wandb.com) and kindly include the ticket no. 65246. 🙂

---

<div class="post-metadata">

**Author:** ![tankwell](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tankwell](https://community.wandb.ai/u/tankwell)\
**Post date:** [April 26, 2024, 12:28pm UTC](https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477/3 "2024-04-26T12:28:59Z")

</div>

Hello,

I had successfully created ~2d ago a new schema for the specific need based on what presented.  
I used the v1 of the same scheme using groupby in the run selector, and added that later on to a separate report than the main workspace.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![joana-marie](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@joana-marie](https://community.wandb.ai/u/joana-marie)\
**Post date:** [May 2, 2024, 5:10am UTC](https://community.wandb.ai/t/plot-confusion-matrix-v2-groupby-some-config-field/6477/4 "2024-05-02T05:10:17Z")

</div>

Glad to know and thank you for sharing @tankwell we’ll mark this as resolved and feel free to write in again for any concerns.
