Skip to content

Latest commit

 

History

History
77 lines (44 loc) · 3.94 KB

File metadata and controls

77 lines (44 loc) · 3.94 KB

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 ✉️ [email protected]

❤️ Owner

Made with ❤️ by MEMUDU Alimatou Sadia Anike.