Skip to content
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

Using null in train config leads to errors #99

Open
keraJLi opened this issue Jun 28, 2023 · 0 comments
Open

Using null in train config leads to errors #99

keraJLi opened this issue Jun 28, 2023 · 0 comments

Comments

@keraJLi
Copy link
Collaborator

keraJLi commented Jun 28, 2023

null is standard yaml syntax, the equivalent of python's None. Therefore using it to specifiy missing values in a training config should work, but it leads to an error. I'm not sure why exactly, but its related to the way saving yamls is handled in mle-hyperopt, more specifically in save_yaml in mle_hyperopt/helpers/utils.py. At the point where the file is evaluated as

data = json.dumps(convert(obj), indent=1)
data_dump = ast.literal_eval(data)

the data variable contains null without quotes, which cannot be parsed (its also not a variable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant