This is a tutorial that one can use to help people grok Hamilton.
The task is to translate the procedural code into Hamilton. That is:
mpg_pipeline.py or MPGSimple.ipynb.If you get stuck or want to see the solution, you can look at mpg_pipeline_target.py or MPGSimpleTarget.ipynb. These solutions represent a very straight port, and there are many ways to improve them. The point to improving is to show that modifications and updates are quick and easy to make.
For a more advanced translation, you can look at the mpg_pipeline_advanced.py or MPGSimpleAdvancedTarget.ipynb files.
To get set up:
examples/hamilton-tutorials/mpg-translation directory.pip install - requirements.txtOr run it in Google Colab: