# Define\_metric() hidden parameter issue?

**URL:** <https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687>\
**Category:** W&B Help\
**Created:** [January 12, 2024, 9:14am UTC](https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687 "2024-01-12T09:14:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevda-ogut](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sevda-ogut](https://community.wandb.ai/u/sevda-ogut)\
**Post date:** [January 12, 2024, 9:14am UTC](https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687/1 "2024-01-12T09:14:34Z")

</div>

Hello,  
I have the following code:

```auto
        wandb.define_metric("epoch", hidden=True)
        wandb.define_metric("train_loss", step_metric="epoch")
        wandb.define_metric("validation_loss", step_metric="epoch")

```

I want plots of train\_loss/epoch and validation\_loss/epoch and not that of epoch/step. Even with the hidden parameter set to True, I see the plot of epoch/step on my dashboard (not in the Hidden Panels) with wandb version 0.16.2. I’d appreciate the help!

---

<div class="post-metadata">

**Author:** ![fmamberti-wandb](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fmamberti-wandb](https://community.wandb.ai/u/fmamberti-wandb)\
**Post date:** [January 15, 2024, 2:49pm UTC](https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687/2 "2024-01-15T14:49:10Z")

</div>

Hi @sevda-ogut, thank you for reporting this.

We are aware of an issue with the `hidden=True` parameter not stopping the plots from being automatically plotted and we are investigating a fix for this. I will add your report to our internal ticket so we can reach out if there are any updates on this.

In the meantime, the plots can only be manually deleted from the UI. Let me know if you have any further questions.

---

<div class="post-metadata">

**Author:** ![fmamberti-wandb](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fmamberti-wandb](https://community.wandb.ai/u/fmamberti-wandb)\
**Post date:** [July 18, 2024, 3:45pm UTC](https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687/3 "2024-07-18T15:45:32Z")

</div>

Hi @sevda-ogut, we have now deployed a Fix for `hidden=True` and metrics logged with this argument should not appear automatically in the UI anymore.

---

<div class="post-metadata">

**Author:** ![sevda-ogut](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sevda-ogut](https://community.wandb.ai/u/sevda-ogut)\
**Post date:** [October 31, 2024, 9:26am UTC](https://community.wandb.ai/t/define-metric-hidden-parameter-issue/5687/4 "2024-10-31T09:26:19Z")

</div>

Thank you very much!
