-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked onlogger: wandbWeights & BiasesWeights & Biasesver: 1.9.x
Milestone
Description
🚀 Feature
Reopening issue #9264: Make the config flattening that happens in WandbLogger.log_hyperparams optional.
Motivation
Similar to the original issue, flattening the config makes it harder to re-use later.
From the original issue:
Wandb support nested config by default. Furthermore, by flattening the configuration it makes it more difficult to load an experiment from a wandb run – instead of taking the config directly from the run, you have to un-flatten it first (or really, not use log_hyperparams and instead do it manually).
Pitch
Add flatten: bool = True
as a kwarg in log_hyperparams.
Alternatives
- Creating custom logger subclasses that do not flatten the config
- Feels hacky, does not keep up well with new loggers being added.
- Writing our own function to unflatten the config
- Seems like a workable alternative, albeit a roundabout one. It adds one more moving piece to the system in order for configs to be reused, so my preference would still be to not flatten it at all, if possible.
cc @Borda @awaelchli @morganmcg1 @borisdayma @scottire @parambharat
dsuess
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked onlogger: wandbWeights & BiasesWeights & Biasesver: 1.9.x