-
This is a Machine 💻 Learning Model to find adherence rates of patients using variance factors. (for more details please refer Model Analysis folder)
-
This Machine Learning model using K - Means Clustering Algorithm to distinguish b/w adherence groups of patients. (for Elbow Plot please refer Initial Preprocessing and Integrate and apply model files which is present in Modal Analysis folder)
- Python
- Flask (for Model Deployment)
- Pandas (for Processing CSV Files)
- PyCarret (A very famouse Machine Learning Library)
- Heroku (Cloud Hosting Service used for Deployment)
-
Install suitable version of Python (3.8.3 is recommended) along with pip.
-
Run the following commands to setup the server and to run it on your system.(make sure you are in same directory is app.py)
pip install < requirements.txt
python app.py
You need to send a POST Request at /api with a sample JSON body as shown below :
{
"key" : "rwg2nilbso05ak918xcz",
"ENCOUNTERS" : 44,
"ENCOUNTER_DURATION" : 2917080,
"DOSES" : 8,
"DISPENSES" : 30,
"Total Course Duration" : 811,
"PROCEDURES" : 103,
"Allergies + Conditions" : 14,
"HEALTHCARE_EXPENSES + HEALTHCARE_COVERAGE" : 791178.1,
"TOTAL_CALCULATED_COST" : 451562.01
}
Model has been deployed to heroku at :
https://health-ml-model.herokuapp.com/