memudualimatou / INSURANCE-CHARGES-WEB-APPLICATION

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INSURANCE CHARGES PREDICTION SYSTEM

This is a charge prediction system. The aim is to predict individual insurance charges based on their status


πŸ˜‡ INSPIRATION

The purposes of this Project to look into different features to observe their relationship, and plot a regression algorithm based on several features of individual such as age, physical/family condition and location against their existing medical expense to be used for predicting future medical expenses of individuals that help medical insurance to make decision on charging the premium.The dataset has 7 coloumns which are age,sex,region,charges,numberOfChildren, smoke and BMI which is Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. BMI= m/h^2 where m = mass (in kilograms) h = height (in meters)



βš™οΈ HOW DOES THE INSURANCE CHARGES PREDICTION SYSTEM WORKS?

This sytem is a flask responsive web application hosted on heroku. The user has to input some data and get the predicted charges immediately. The system's interface is built using using HTML & CSS from scratch.Everything is all about preferences but I will personnaly prefer to style my web app than using the plain streamlit interface. So We use randomforestRegression algorithm to build the model, sterialize it and destrerialize it using Pickle to make prediction. Whenever a user enter the correspondant input through the interface, at the backend , a function in the flask app is called to fetch the inputted data, clean it and displayed the predicted outcome.

The system depends on the following files.

  1. insurance.csv See here :The system database CLICK HERE TO DOWNLOAD
  2. insurances.ipynb See here :The model notebook
  3. insurances.py See here: The model python file
  4. app.py See here: The flask app
  5. index.html See here: The html file is located insite the Templates folder
  6. AppStyle.css See here: The css file is located inside the static folder.


⚠️ THE TECHNOLOGY

βŒ› Project Demo


DEPLOYED ON HEROKU | CLICK HERE TO TEST THE SYSTEM

capture


πŸ”‘ Prerequisites

All the dependencies and required libraries are included in the file requirements.txt See here: The css file located inside the static foler.

πŸš€ INSTALLATION

Clone the repo
$ https://git.heroku.com/insurance-charges-web-app.git

Now, run the following command in your Terminal/Command Prompt to install the libraries required

$ pip3 install -r requirements.txt

πŸ‘ And it's done!

Feel free to mail me for any doubts/query βœ‰οΈ alimatousadia005@gmail.com

❀️ Owner

Made with ❀️ by MEMUDU Alimatou Sadia Anike.

About


Languages

Language:Jupyter Notebook 98.6%Language:Python 0.7%Language:HTML 0.4%Language:CSS 0.3%Language:Procfile 0.0%