This code was created using the Poetry package management. To install Poetry follow the description at poetry installation. Once you have installed Poetry you need to initiate the project:
poetry init
poetry update
Open a shell with the virtual environment loaded:
poetry shell
python -m ipykernel install --user --name monzo --display-name "monzo"
jupyter-notebook Monzo_Take_Home_Test_Decision_Scientist_Rafael_Garcia_Dias.ipynb &
Everything on the Jupyter Notebook is based on the code development at the monzo_decision_scientist. The scripts can be run directly by
python -m <model_path>
For example, to clean and explore the data one can run:
python -m monzo_decision_scientist.data.exploratory_analysis
I have also prepared a bash script to run all the code in sequence.
bash run_all.sh
The tests were developed with pytest. Run all the tests with:
pytest -svv