# Plot tables with best results from runs

**URL:** https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365
**Category:** W&B Help
**Tags:** wandb
**Created:** [November 22, 2021, 10:28am UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365 "2021-11-22T10:28:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![karol-g](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@karol-g](https://community.wandb.ai/u/karol-g)
#### Post date: [November 22, 2021, 10:28am UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365/1 "2021-11-22T10:28:34Z")

</div>

Hi,

I would like to create a report not just with graph plots of my metrics but also a table with the best metric results (accuracy, mAP, …). So that the viewer does not have to compare each line of a run, but can instead look at the table with the scalar best results if he wants to identify the best run.

It seems to me as there is currently no such feature implemented?

Best  
Karol

---

<div class="post-metadata">

### Author: ![ramit\_goolry](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@ramit\_goolry](https://community.wandb.ai/u/ramit_goolry)
#### Post date: [November 23, 2021, 12:13am UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365/2 "2021-11-23T00:13:08Z")

</div>

Hi Karol,

We do provide such a feature, it is called a Scalar Chart. You should be able to add a scalar chart to any panel by clicking the top right of the panel and selecting “Scalar Chart”. You can then define the metric you want to consider in that one chart.

I hope this answers your question.

Thanks,  
Ramit

---

<div class="post-metadata">

### Author: ![karol-g](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@karol-g](https://community.wandb.ai/u/karol-g)
#### Post date: [November 23, 2021, 8:34am UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365/3 "2021-11-23T08:34:53Z")

</div>

Sorry, but that is not really what I want. The scalar chart can only be used for tracked parameters and then aggregates over all values of that parameter for every run.  
The result is always just a single value for all runs combined.  
Example: I select the parameter accuracy and choose “Agg=Max”. Then the mean accuracy for every run is computed and then the maximum mean value of all runs is chosen.  
This is not what I want. I want that the max of a single run is chosen and plotted in a table along the max values of every other run.

---

<div class="post-metadata">

### Author: ![\_scott](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/_scott/32/95_2.png) [@\_scott](https://community.wandb.ai/u/_scott)
#### Post date: [November 23, 2021, 6:21pm UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365/4 "2021-11-23T18:21:55Z")

</div>

This is a workflow that we’ll be making much easier in the future, making it easier to get min, max etc. for a given metric for a given run / group of runs. In the meantime, you can just log the max value at the end of your runs and get the median of that. We have a convenience method called `define_metric` which you can use to automatically do this for you.

```python
wandb.init(entity="wandb", project="define-metric-demo")
# define a metric we are interested in the minimum of
wandb.define_metric("loss", summary="min")
# define a metric we are interested in the maximum of
wandb.define_metric("acc", summary="max")

```

This will then log the max/min value of a given logged metric for you.  
Here’s more documentation of this method:

> **[Log Data with wandb.log](https://docs.wandb.ai/guides/track/log#customize-axes-and-summaries-with-define_metric)**
>
> Keep track of metrics, videos, custom plots, and more

---

<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: [January 22, 2022, 6:22pm UTC](https://community.wandb.ai/t/plot-tables-with-best-results-from-runs/1365/5 "2022-01-22T18:22:29Z")

</div>

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