Skip to content

This is for playing with prediction algorithm using PyCaret and Flask

Notifications You must be signed in to change notification settings

hhaydar/ml-app-insurance

Repository files navigation

App

StabilityGit count

App is an application to study ml-algorithm in this case (prediction). I use a data for insurance basically I watch out this medium paper. https://towardsdatascience.com/build-and-deploy-your-first-machine-learning-web-app-e020db344a99

Installation

You need PyCaret, Flask that's all.

pip install pycaret
pip install flask

Web Page Usage

https://hh-insurance.herokuapp.com/

API Usage

import requests
url = 'https://hh-insurance.herokuapp.com/predict_api'
pred = requests.post(url,json={ 'age':55,
                                'sex':'male',
                                 'bmi':59,
                                 'children':1,
                                 'smoker':'male',
                                 'region':'northwest'})
print(pred.json())
python api_json_test.py

Contributing

Pull requests are welcome.

What's included

Within the download you'll find the following directories and files.

ml-app-insurance/
├── api_json_test.py
├── Procfile
├── README.md
├── dataset
│   ├── insurance.csv
├── templates
│   ├── home.html
├── app.py
├── requirements.txt
├── insurance_14052020.pkl {model}

License

About

This is for playing with prediction algorithm using PyCaret and Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published