- Setup Github account
- Create virtual environment
python -m venv venv
- Activate virtual environment
- Windows
venv\Scripts\activate
- Linux/MacOS
source venv/bin/activate
- Install required packages:
pip install -r requirements.txt
- Create toy application with Streamlit.
- Push repository to GitHub.
- Deploy on Streamlit community cloud.
Sample application code: toy-app.py
- Perform EDA and model development on Jupyter notebook.
- Develop training and model registry scripts to automate model training and persistance respectively.
- Run the training script to train a loan approval model:
python src/training.py --data_path data/loan_dataset.csv --model_path models/ --f1_criteria 0.6
Sample model training notebook: DSSI_LoanModel.ipynb
Sample training script: training.py
Sample model registry script: model_registry.py
- Develop an inference script to serve predictions.
- Create a loan approval application with Streamlit that automates decisions with user inputs and trained model.
Sample inference script: inference.py
Sample application code: app.py
Run and test the application locally:
streamlit run app.py
- Commit repository to GitHub.
- Deploy on Streamlit community cloud.