# Logged value available in graph panel, but not in columns

**URL:** <https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100>\
**Category:** W&B Help\
**Created:** [March 17, 2022, 9:28am UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100 "2022-03-17T09:28:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hogru](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hogru](https://community.wandb.ai/u/hogru)\
**Post date:** [March 17, 2022, 9:28am UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/1 "2022-03-17T09:28:30Z")

</div>

I log values which have names in the form of `test/temp_top-k.---1` (I want the dashes for sorting reasons). I can create graph panels with these values, but they do not show up in the column view. When I `Manage Columns` they are not listed in the `Hidden Columns`. When I search for them, it gives me no (an empty) result. Even when I select `Show All` they don’t show up in the column view. A bug?

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [March 17, 2022, 4:15pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/2 "2022-03-17T16:15:26Z")

</div>

Hi Stephan,

I wasn’t able to reproduce this bug on my end when using the code:  
`wandb.log({``"test/temp_top-k.---1"``:metric})`

Can you tell me how you are logging this data? I was also able to find the column `train/temp_top-k_mean` within your run table from your most recent project. When you created the column, was the quotations properly around the `---1`?

Warmly,  
Leslie

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [March 21, 2022, 12:53pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/3 "2022-03-21T12:53:08Z")

</div>

Hi Stephan,

We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.

Best,  
Weights & Biases

---

<div class="post-metadata">

**Author:** ![hogru](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hogru](https://community.wandb.ai/u/hogru)\
**Post date:** [March 22, 2022, 9:38pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/4 "2022-03-22T21:38:19Z")

</div>

Hi Leslie,

I apologize for not responding earlier. I assumed to be notified by e-mail when this thread is updated. Probably I need to check my settings, or “watch” this thread.

I log via Pytorch Lightning:

```auto
wandb_logger = WandbLogger(project=settings.project_name, log_model=True)
wandb_logger.watch(model, log='gradients', log_freq=50, log_graph=True)

```

The actual code for the logging is this:

```auto
temp_accs_top_k = {f'{k:->4d}': v for k, v in zip(settings.ks, temp_accs)}
lightning_module.log(f'{split}/temp_top-k', temp_accs_top_k, batch_size=lightning_module.batch_size)

```

That looks a bit odd I suppose. The code is in a function that I call from several different `pl.LightningModule`s. The variable `lightning_module` refers to that module. The parameter `temp_accs_top_k` evaluates to (straight from the debugger):

`{'---1': 0.00019996000628452748, '---2': 0.00019996000628452748, '---3': 0.00039992001256905496, '---5': 0.0005998800043016672, '--10': 0.0005998800043016672, '--20': 0.001399720087647438, '--50': 0.004199160262942314, '-100': 0.007598480209708214, '1000': 0.08318336308002472}`

Which is wrong. But I am seeing the values in the graph panels (see attached screenshot).  
 ![Screen Shot 2022-03-22 at 21.52.37](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/3ae06dc0b1399ce16eb917dfb94b60a5e0f77acd.png)

I changed the code so that `temp_accs_top_k`now contains `{'test/temp_top-k.---1': 0.2963850498199463, 'test/temp_top-k.---2': 0.3962452709674835, 'test/temp_top-k.---3': 0.44557619094848633, 'test/temp_top-k.---5': 0.5052925944328308, 'test/temp_top-k.--10': 0.5733972191810608, 'test/temp_top-k.--20': 0.6277211904525757, 'test/temp_top-k.--50': 0.6810465455055237, 'test/temp_top-k.-100': 0.716596782207489, 'test/temp_top-k.1000': 0.802676260471344}`.

I log in a loop since Pytorch Lightning can’t log a dict (I believe). I know that wandb does it, but I need the batch\_size parameter (I have two dataloaders with different sizes/lenghts and need to make sure that Pytorch Lightning does not get confused with steps/epochs).

```auto
for k, v in temp_accs_top_k.items():
    lightning_module.log(k, v, batch_size=lightning_module.batch_size)

```

Update: just realized that Pytorch Lightning has a `log_dict` function which lets me get rid of the awkward for loop.

So the “bug” is more like “why did it work in the first place (in the graph panels)?”

Hope that’s not too much to digest and it is traceable.

Best,  
Stephan

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [March 30, 2022, 2:58pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/5 "2022-03-30T14:58:13Z")

</div>

Hi Stephan, the values that you first pointed to that you had mentioned were wrong are not the values that are shown on the graph. You can find the values that are logged there by creating a weave Table. This is done by clicking on ‘+ Add Panel’ then navigating to Weave. From there type on the top of the navigation bar `runs.history.concat["train/temp_top-k\.---1"]` and then clicking on the gear icon on the right and changing ‘Render As’ to ‘Table’ as shown in the image attached. Let me know if you have any problems pulling up this table!

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [April 4, 2022, 12:31pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/6 "2022-04-04T12:31:27Z")

</div>

Hi Stephan, I’m just checking in to see if you were able to get everything working properly?

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [April 7, 2022, 4:20pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/7 "2022-04-07T16:20:50Z")

</div>

Hi Stephan, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<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 21, 2022, 9:39pm UTC](https://community.wandb.ai/t/logged-value-available-in-graph-panel-but-not-in-columns/2100/8 "2022-05-21T21:39:14Z")

</div>

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