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

Load gin config to 1 function or as a dict #34

Closed
chledowski opened this issue Oct 17, 2019 · 2 comments
Closed

Load gin config to 1 function or as a dict #34

chledowski opened this issue Oct 17, 2019 · 2 comments

Comments

@chledowski
Copy link

Hi. Thanks for your nice work.

I am using gin to configure my experiments. Next, while visualizing results in a Jupyter Notebook, I would like to be able to load only my model parameters from the .gin file.

Is there a way to just load the .gin params to only one function? Or just to load it as a dict?

Thanks :)

@chledowski chledowski changed the title Load gin file as a dict Load gin config to 1 function or as a dict Oct 17, 2019
@sguada
Copy link
Collaborator

sguada commented Oct 17, 2019

I'm not sure what you mean, you can just load the .gin file as a text file. Not clear how to load as dict.

@chledowski
Copy link
Author

I was just curious if there is a way to easily parse the file into a dict.

Anyway, I just realized that a workaround that works for me is deleting parts of config file I don't need :)

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

2 participants