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 have updated DVC version from 2.5.4 to latest version 2.6.4.
I am running my experiments with dvc exp run. I use -S option to use different parameters between experiments. Following the get-started example I load my params.yaml in my script and update my model config programatically.
If my params.yaml is emtpy and I run dvc exp run -S optimizer.lr=0.1:
dvc 2.5.4: experiment runs without problems
dvc 2.6.4: experiment crashes returning a confusing error: ERROR: unexpected error - cannot represent an object: {'lr': 0.1}
I wouldn't like to have to set my params.yaml manually. This would force to replicate my config twice. Most DL frameworks have config files where model description and training hyperparameters are stored. So I would like to update those values simply using the -S flag.
The text was updated successfully, but these errors were encountered:
It seems that the breaking change was introduced in #6378 as part of the 2.6.0 release. I will take a look and try to come back with more details.
Pd. There is an open issue about whether we should allow using -S to create new params or not. It would be nice if you could expose there your use case, which seems to rely on allowing to create new params on the fly.
Bug Report
Description
I have updated DVC version from 2.5.4 to latest version 2.6.4.
I am running my experiments with
dvc exp run
. I use -S option to use different parameters between experiments. Following the get-started example I load my params.yaml in my script and update my model config programatically.If my
params.yaml
is emtpy and I rundvc exp run -S optimizer.lr=0.1
:dvc 2.5.4
: experiment runs without problemsdvc 2.6.4
: experiment crashes returning a confusing error:ERROR: unexpected error - cannot represent an object: {'lr': 0.1}
Reproduce
-->
Expected
Experiment runs without returning any error.
Environment information
Output of
dvc doctor
:Additional Information (if any):
I wouldn't like to have to set my
params.yaml
manually. This would force to replicate my config twice. Most DL frameworks have config files where model description and training hyperparameters are stored. So I would like to update those values simply using the -S flag.The text was updated successfully, but these errors were encountered: