question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] support use case of composing the same config node in multiple places in the config tree

See original GitHub issue

🚀 Feature Request

Be able to copy all the elements of one config in an other.

Motivation

In my code I have 2 modules which are trained, meaning that I have 2 optimizers. I would like to modify the parameters of one optimizer, but don’t want to copy have all default optimizer values written twice. I.e would like to do that python main.py module1.optimizer=adam module1.optimizer.lr=0.01 module2.optimizer.lr=0.01 but not have to define a optimize twice. Something like that:

module1:
  ...
  optimizer: ${optimizer.adam}

module2:
  ...
  optimizer: ${optimizer.adam}

which would use the adam optimizer as default for module 1 and 2 without having to dupicate it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

7reactions
omrycommented, Feb 16, 2020

Another idea to play with:

group@path=name

or in defaults:

defaults:
  - db@src_db: mysql
  - db@dst_db: mysql

I kind of like this one.

1reaction
omrycommented, Oct 16, 2019

until this is implemented, a workaround can be implemented as a symlink at the file system level: optimizer1/{adam,nexterov,sgd>.yaml optimizer2 -> optimizer1

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC 6020: YANG - A Data Modeling Language for the ...
1. Containers with Presence YANG supports two styles of containers, those that exist only for organizing the hierarchy of data nodes, and those...
Read more >
Core Features - Spring
This section dives into the details of Spring Boot. Here you can learn about the key features that you may want to use...
Read more >
Thinking in Compose | Jetpack Compose - Android Developers
Jetpack Compose is a modern declarative UI Toolkit for Android. ... If a piece of data is rendered in multiple places, it's easy...
Read more >
Introduction to GitLab Flow
Production branch with GitLab flow. GitHub flow assumes you can deploy to production every time you merge a feature branch. While this is...
Read more >
Configuration Options - Renovate Docs
Currently this setting supports helmv3 , npm , nuget , maven and sbt only, so raise a feature request if you have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found