# Min loss using Weave panel

**URL:** <https://community.wandb.ai/t/min-loss-using-weave-panel/3874>\
**Category:** W&B Help\
**Created:** [February 13, 2023, 5:36pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874 "2023-02-13T17:36:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![szymon-piechowicz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/szymon-piechowicz/32/1195_2.png) [@szymon-piechowicz](https://community.wandb.ai/u/szymon-piechowicz)\
**Post date:** [February 13, 2023, 5:36pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/1 "2023-02-13T17:36:18Z")

</div>

I logged loss in my run. I would like to compare runs by min loss. I found [this](https://github.com/wandb/wandb/issues/736) feature request, which suggests using a Weave panel with:

```auto
runs.map((row) => row.history["loss"].min)

```

This works when I add the panel on the run page (i.e. `/<team>/<project>/runs/<run id>`). However, when I add the panel on the project page (i.e. `/<team>/<project>`), all runs show an empty value.

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [February 15, 2023, 8:49pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/2 "2023-02-15T20:49:35Z")

</div>

Hello Szymon!

If you want to compare runs by min loss in the project page, I would recommend making a bar chart panel by going to `Add panel` → `Bar chart` → set the `Metric` to `training/loss.min`.

Does this answer your question?

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [February 21, 2023, 9:07pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/3 "2023-02-21T21:07:11Z")

</div>

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

---

<div class="post-metadata">

**Author:** ![szymon-piechowicz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/szymon-piechowicz/32/1195_2.png) [@szymon-piechowicz](https://community.wandb.ai/u/szymon-piechowicz)\
**Post date:** [March 6, 2023, 9:49pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/4 "2023-03-06T21:49:29Z")

</div>

That only works if you set the metric aggregation to min, e.g.:

```auto
wandb.define_metric("training/loss", summary="min")

```

I did not do that in my run, and I was hoping I could use Weave to perform the aggregation for me.

---

<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:** [March 7, 2023, 12:42pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/5 "2023-03-07T12:42:16Z")

</div>

You can add a new column and use `row.run.history["loss"].min`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/c/c0c47df699223fb68f2b07f24fa80492015dc90f.jpeg)

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [March 10, 2023, 11:16pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/6 "2023-03-10T23:16:10Z")

</div>

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

---

<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:** [May 6, 2023, 12:42pm UTC](https://community.wandb.ai/t/min-loss-using-weave-panel/3874/7 "2023-05-06T12:42:32Z")

</div>

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