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
I'm attempting to create a flexible configuration system for a machine learning project using hydra-zen, specifically for configuring observation layer initializers. My goal is to:
Set default initializers in the configuration
Allow runtime override of the initializer type
Allow runtime configuration of initializer parameters (e.g., standard deviation)
Could not override 'observation_layer.time_scale_init.stddev'.
To append to your config use +observation_layer.time_scale_init.stddev=0.5
Key 'stddev' is not in struct
full_key: observation_layer.time_scale_init.stddev
object_type=dict
Could not override 'observation_layer/time_scale_init/stddev'.
To append to your config use +observation_layer/time_scale_init/stddev=0.5
Key 'observation_layer/time_scale_init/stddev' not in 'Builds_main_fn'
full_key: observation_layer/time_scale_init/stddev
object_type=Builds_main_fn
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context and Problem Description
I'm attempting to create a flexible configuration system for a machine learning project using hydra-zen, specifically for configuring observation layer initializers. My goal is to:
Specific Use Case
I want to be able to run configurations like:
or override other intializers at the same time:
Current Implementation Attempt
which works when I do the following:
uv run src/test.py \ observation_layer.x_dim=32 \ observation_layer.features=64
output:
likewise when I do:
output:
Current Limitations
When attempting to override initializer parameters, I encounter errors like:
command 1:
output:
command 2:
output (incorrectly stores the jax function):
command 3:
output:
command 4:
output (again incorrectly/doesnt store the jax function):
Questions and Requests for Guidance
Beta Was this translation helpful? Give feedback.
All reactions