Skip to content

Change default Namespace to Omegaconf and new method to save config-lock.yaml for reproducibility #292

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

Merged

Conversation

guptaaryan16
Copy link
Contributor

@guptaaryan16 guptaaryan16 commented Aug 18, 2023

This PR is to introduce OmegaConf as the default config dict for handling hyper parameters in templates. This will be great for the subsequent introduction of python-fire and hydra.

Also we try to have a new save_config method as the old method uses shutil.pyand is quite limited in its scope to save an overridden config using command line. At last, we introduce a test function test_save_config to test saved by save_config method.

Additionally I plan to remove PyYaml file methods with OmegaConf methods as they work better with Python objects like PosixPath.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New feature
  • Other

@netlify
Copy link

netlify bot commented Aug 18, 2023

Deploy Preview for code-generator ready!

Name Link
🔨 Latest commit 3e5d772
🔍 Latest deploy log https://app.netlify.com/sites/code-generator/deploys/64e340f77a82e90008c7b75f
😎 Deploy Preview https://deploy-preview-292--code-generator.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guptaaryan16 guptaaryan16 marked this pull request as draft August 18, 2023 18:26
@guptaaryan16 guptaaryan16 marked this pull request as ready for review August 21, 2023 10:55
@guptaaryan16 guptaaryan16 requested a review from vfdev-5 August 21, 2023 10:57
Copy link
Member

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @guptaaryan16 !

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

Successfully merging this pull request may close these issues.

2 participants