Metric names when using multiple dataloader for validation #5782
Replies: 9 comments 6 replies
-
Hey @kantholtz, Thanks for sharing your ideas ! It shouldn't be too hard to add. Best regards, |
Beta Was this translation helpful? Give feedback.
-
If not, no stress: I wouldn't mind doing it myself and open up a PR :) But unfortunately I will only have time to do that from mid December on. |
Beta Was this translation helpful? Give feedback.
-
@kantholtz would you please mention PL version you use? When using multiple validation loaders, I am having issues with 1.0.8 most likely due to the line . |
Beta Was this translation helpful? Give feedback.
-
Sure, I am using |
Beta Was this translation helpful? Give feedback.
-
Thanks. I pulled "pytorch-lightning==1.1.0rc1" and it runs fine. |
Beta Was this translation helpful? Give feedback.
-
@tchaton quick question: is there a single place, where I can simply remove the suffix without too much hassle or is it integrated more deeply? (My metrics have distinct names so there won't be any collision.) |
Beta Was this translation helpful? Give feedback.
-
For the curious if anyone needs a quick and dirty workaround: I set https://github.com/PyTorchLightning/pytorch-lightning/blob/7b7d4bb86d2c28ccc8b13953481f084d6f8accf7/pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py#L152 to |
Beta Was this translation helpful? Give feedback.
-
I'm curious if there's a solution to this question? I came a across a similar unanswered question in the forums: https://forums.pytorchlightning.ai/t/name-of-dataloader-in-case-of-multiple-dataloaders/900 |
Beta Was this translation helpful? Give feedback.
-
For those searching for the solution to the same issue, in the new version of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I am using multiple dataloaders for validation. This works great so far, but I have some questions regarding the logged metrics:
As far as I understand, lightning will automatically assign a metric suffix (
/dataloader_idx_X
). Is there any way for me to control that behaviour? Wandb assumes groups with that slash, and it means, that it groups by metric name and not validation set. However, there are scenarios where it makes much more sense to group by validation set, as they might look at completely different metrics. On the bottom, there is a screenshot on how it looks without any further wanbd configuration.Apart from my question, this is more of a feature proposal: Can't we supply a (ordered) dictionary instead of a list via
val_dataloader()
in DataModules? So that it looks like this:DataModule:
LightningModule
Which then logs
scenarioX/my_metric
in case of the example ordataloader_idx_X/my_metric
when a list is provided.Beta Was this translation helpful? Give feedback.
All reactions