# How to plot performance metrics against non-summary stats?

**URL:** <https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891>\
**Category:** W&B Help\
**Tags:** dashboard, sweeps\
**Created:** [February 10, 2022, 6:57pm UTC](https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891 "2022-02-10T18:57:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ted-positronix](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@ted-positronix](https://community.wandb.ai/u/ted-positronix)\
**Post date:** [February 10, 2022, 6:57pm UTC](https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891/1 "2022-02-10T18:57:27Z")

</div>

How to plot performance metrics against non-summary stats?

I am running sweeps over a few different datasets within the same job (each for a different location, it’s a multi-task learning problem) and I am making wandb logging calls such as:

```auto
  wandb.log({
    "false_negative_rate" : 0.043,
    "false_positive_rate" : 0.261,
    "location": "Boston",
    "number_training_instances": 50
  })

  ...

  wandb.log({
    "false_negative_rate" : 0.017,
    "false_positive_rate" : 0.145,
    "location": "Boston",
    "number_training_instances": 100
  })

  ...

  wandb.log({
    "false_negative_rate" : 0.076,
    "false_positive_rate" : 0.334,
    "location": "Miami",
    "number_training_instances": 50
  })

  ...

  wandb.log({
    "false_negative_rate" : 0.048,
    "false_positive_rate" : 0.172,
    "location": "Miami",
    "number_training_instances": 100
  })

```

After logging, I’d like to be able to use the dashboard to create various scatter plots such as

```auto
Plot false_negative_rate versus false_positive_rate
  where location == "Boston"
    and number_training_instances == 50

Plot false_negative_rate versus number_training_instances
  where location == "Washington"

Plot false_negative_positve_rate versus location
  where number_training_instances == 100

```

However, the filters in the dashboard only provide me the ability to filter/plot the last values logged (as opposed to any of the values logged). E.g., I can only filter on

```auto
 - number_training_instances == 100
 - location == "Miami"

```

because these were the last values logged for these attributes in each sweep.

Is there a way to get the plotting flexibility I want using wandb’s existing features?  
Cheers

---

<div class="post-metadata">

**Author:** ![a-sh0ts](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@a-sh0ts](https://community.wandb.ai/u/a-sh0ts)\
**Post date:** [February 16, 2022, 6:51pm UTC](https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891/2 "2022-02-16T18:51:37Z")

</div>

Hey @ted-positronix,

`wandb` offers flexible plotting capabilities via the usage of the `Custom Chart` panel. [You can access all logs of your metrics via the `history` or `historyTable` tab. This can then be passed to something like the custom `scatter plot` chart we offer.](https://docs.wandb.ai/ref/app/features/custom-charts#custom-visualizations). At this point your filtering should adjust the custom chart as you’ve seen with the summary plots you tried.

Let me know if I’m misinterpreting your use case!

Regards,  
Anish Shah

---

<div class="post-metadata">

**Author:** ![ted-positronix](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@ted-positronix](https://community.wandb.ai/u/ted-positronix)\
**Post date:** [February 17, 2022, 12:50am UTC](https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891/3 "2022-02-17T00:50:52Z")

</div>

Many thanks Ashish! I will need to do some reading to see how to use this functionality. I don’t know Vega, etc.

I will post further questions here if I run into trouble.

---

<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:** [April 20, 2022, 6:02pm UTC](https://community.wandb.ai/t/how-to-plot-performance-metrics-against-non-summary-stats/1891/4 "2022-04-20T18:02:07Z")

</div>

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