-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python yaml package does not parse all float values correctly. #23
Comments
Update: Using environment variable does not work either. Even jsonnet parsers that value as string. The best way to circumvent this is to make sure that the sweep does not send float values in the e notation. |
Update: Using the env variable does not work because even that goes through yaml.load. Moreover, even when the values are not specified in 1e.. notation in the sweep config. The wandb server always sends values in 1e... format when there are more than 5 decimal places. So the only way forward is fixing the yaml load or using json.loads. |
wandb-allennlp/wandb_allennlp/allennlp_translator.py
Line 120 in d36d287
For example, a value
1e-5
will be parsed as a string "1e-5" instead of a float.Possible solutions:
How to by-pass the issue without fixing?
Use environment variable to get the value to the jsonnet instead of command line override.
Ref: https://stackoverflow.com/questions/30458977/yaml-loads-5e-6-as-string-and-not-a-number
The text was updated successfully, but these errors were encountered: