This is a charge prediction system. The aim is to predict individual insurance charges based on their status
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)
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.
insurance.csv
See here :The system database CLICK HERE TO DOWNLOADinsurances.ipynb
See here :The model notebookinsurances.py
See here: The model python fileapp.py
See here: The flask appindex.html
See here: The html file is located insite the Templates folderAppStyle.css
See here: The css file is located inside the static folder.
DEPLOYED ON HEROKU | CLICK HERE TO TEST THE SYSTEM
All the dependencies and required libraries are included in the file requirements.txt
See here: The css file located inside the static foler.
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
Feel free to mail me for any doubts/query โ๏ธ [email protected]
Made with โค๏ธ by MEMUDU Alimatou Sadia Anike.