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
it fails to convert 1e-4 to float, leaving it as a string.
it works fine if I use lr: 0.001
I had to hack around it with:
def __post_init__(self):
# bug in simple_parsing - in the config file 0.001 becomes a float, but 1e4 remains a string
if isinstance(self.params["lr"], str):
self.params["lr"] = float(self.params["lr"])
simple_parsing==0.1.4
Thanks.
The text was updated successfully, but these errors were encountered:
Describe the bug
If I have:
and in a config file I say:
it fails to convert
1e-4
to float, leaving it as a string.it works fine if I use
lr: 0.001
I had to hack around it with:
simple_parsing==0.1.4
Thanks.
The text was updated successfully, but these errors were encountered: