This is a cookiecutter template to get an ML project started on Adalab.
- python 3.10 or later
- cruft 2.11.0 or later (https://cruft.github.io/cruft/)
Clone the template by running the following command.
cruft clone https://github.com/subramaniam20jan/modelops-template.git
The template clones with a working example of a housing market scraper and a model to predict per sq m housing price.
- Clone the template in the adalab environment
- Add project specific dependencies in your requirements.txt (Optional)
- Add non python customizations to add, add them to the Dockerfile (Optional)
- Run
scripts build_custom_image.sh
to generate a docker image based jupyter kernel - Hack away with your code!
Additionally if you want to utilize mlflow related features for benchmarking, version control, reproducibility etc. follow the additional steps.
- Put relevant parts of the code into model.py and etl.py under the steps folder
- Configure workflow_conf.yaml with relevant input parameters
- Run notebooks/workflow.py to get mlflow related features
- Project name in the cruft template needs to be a valid MLFlow project name.
- Project name needs to be a valid conda environment name.
- Project name needs to be a valid jupyter kernel name.