You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I find jsonargparse incredibly useful for organizing code in ML experiments.
Thank you for creating such an excellent project.
I frequently encounter a use case where I need to pass a list of objects, each with separate config files.
This would allow me to experiment with combinations of complex objects.
However, I'm unsure if this is possible with the current version of jsonargparse.
For a minimal example, I'm looking to implement something like the following:
Is there a way to achieve something like this?
I understand that configuring through a single config file is possible, possibly by using jsonnet to import multiple config files, but being able to directly specify multiple config files through command-line arguments would be convenient.
The text was updated successfully, but these errors were encountered:
Currently that is not possible. Loading from subconfigs only works at argument level, not for each class in a list. A somewhat close alternative that would work now, although not ideal, is to use global config files with only the class you want to append to the list. The code would be:
Note that there are no class_path and init_args in the config. That is because dataclasses are not considered subclasses. This is until #287 is implemented and it becomes possible to select which class types should be considered or not subclasses.
Hi, I find jsonargparse incredibly useful for organizing code in ML experiments.
Thank you for creating such an excellent project.
I frequently encounter a use case where I need to pass a list of objects, each with separate config files.
This would allow me to experiment with combinations of complex objects.
However, I'm unsure if this is possible with the current version of jsonargparse.
For a minimal example, I'm looking to implement something like the following:
And each
ComplexClass
would be configured through a separate config file like this:Then the command would be:
Is there a way to achieve something like this?
I understand that configuring through a single config file is possible, possibly by using jsonnet to import multiple config files, but being able to directly specify multiple config files through command-line arguments would be convenient.
The text was updated successfully, but these errors were encountered: