Deployed link: https://loan-approval-app-facb8c5d72fa.herokuapp.com/
This app was made as the final assignment of DPhi's Online Machine Learning Bootcamp. The objective of this Machine Learning project is to build a model and web application that the bank can use to classify if a user can be granted a loan or not.
/home
: Home page/prediction
: Prediction form/result
: API- Return:
[pred_prob, pred_class]
- See
guide/API_Example.ipynb
for minimal example
- Return:
-
Folders:
dev
: development scriptsguide
: notebook for usage examplesmodels
: pickled pre-trained model (scikit-learn pipeline)static
: css filestemplate
: html files
-
Application Files:
app.py
: main applicationforms.py
: wtforms class
-
Deployment Files:
requirements.txt
: package dependenciesruntime.txt
: Python versionProcfile
: commands for app's dynos on Heroku
The app is built using Python 3.12.1, with the following dependencies:
Flask
: web frameworkFlask-WTF
: forms validationpandas
: data analysisscikit-learn
: model pipelinegunicorn
: HTTP server
List of dependencies and its version can be found on requirements.txt
.
- Improve classifier performance
- Create new page for batch prediction, using upload and download file
- Create new page for explainable results, using LIME or SHAP