Comments (4)
Trying it should be easy:
This:
https://github.com/timtody/curious/blob/d0342399e304bd92c62446806f73a615203c6799/reach_constrained.py#L15-L17
Can be replaced with:
@hydra.main(config_path="conf/conf/constrained.yaml")
def main(cfg):
# the rest of your code.
if __name__ == "__main__":
main()
I suggest you go through the Hydra tutorial, there are a lot of advantages for using Hydra over using OmegaConf directly.
from intrinsically_motivated_robotics.
Hey Omry, thanks for reaching out. I'm aware the Hydra framework exists and have tried it in the past. Currently, I don't see the benefit in using it over OmegaConf since I don't need any of the extra functionality like sweeps etc. Why exactly would you recommend Hydra over OmegaConf in my case?
Also, love the Dr. Boom :-)
from intrinsically_motivated_robotics.
Hi Julius,
That's a great question, and the answer will be very long, in fact I have a blog post that will be published next week explaining a large part of this which I will not write again now :).
A few things you get now:
- Your project is still not very complex, but those things grow in complexity over time. Hydra makes composition and reuse of configs easy. As you project scales, it will make it easy add and configure different environments, or add support for additional algorithms.
- Tab completion
- Automatic output directory management
- Automatic python logging configuration
- Easy parameter sweeps as you mentioned, eventually you will want to compare things.
And some coming soon:
- Command line driven hyper parameter optimization (once the Ax plugin lands)
- Remote execution once the Ray Launcher plugin lands (send your code directly to AWS, for example).
- It will make it easy to integrate with other frameworks coming that will utilize Hydra (I am expecting some to come out this year, some will be RL frameworks that can help you compare your results to other baselines).
I am also expecting to have plugins to integrate with experimentation tracking frameworks like Weights and biases (you just install the plugin, configure it and it initializes things for you automatically), but that's a bit farther down the road.
Dr.Boom is great, I am a big fan on Hearthstone :)
from intrinsically_motivated_robotics.
In case you missed it, the blog post is live.
from intrinsically_motivated_robotics.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intrinsically_motivated_robotics.