Coder Social home page Coder Social logo

mraabhijit / insurance-premium-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.86 MB

Regression Model for Predicting the Annual Insurance Premium based on some input features

Python 0.49% Jupyter Notebook 99.34% HTML 0.17%
jupyter-notebook machine-learning python random-forest sklearn

insurance-premium-prediction's Introduction

Insurance Premium Prediction README


About the Repository


The repo contains the codebase for a machine learning prediction to calculate the expected premium for a customer given the basic information like age, sex, bmi, children, region and smoker.

This project is an attempt at solving one of the iNeuron Internship projects. Link below:

Insurance Premium Prediction

About the Project


As the name of the repo suggests this projects into a basic prediction model where given the various inputs, the model predicts what the expected premium for the customer/user can be.

Learnings


  • After implementing the project it was seen that out of different algorithms of Linear Regression, Support Vector Machine, Decision Trees and Random Forest (RF), RF provided the highest accuracy on the test data. However, the difference between training and testing accuracy was large. Hence, to try toreduce the gap and reduce Overfitting. With RandomizedSearchCV, we were able to decrease the gap a bit, although a lot is yet to done.

  • While deploying the project on AWS Beanstalk using CodePipeline, errors were encountered in setting up the cloud environment. With some basic search for EC2 instance setup, the model was successfully deployed.

  • For the Frontend of the web app, CHATGPT came to the rescue. While developing the template files, basic usage of prompts to get a desired and decent output was achieved.

Built With


The codebase has been built with the following languages and tools:

Get Started


To use the project on your local systems use the following steps.

Prerequisites

There are no prerequisites to running the codebase.

Installation

  1. Clone the repo
git clone https://github.com/abhijitchak103/insurance-premium-prediction.git
  1. Create local directory, unzip above downloaded files to the directory and open code editor in the same folder.

  2. Create local virtual environment and activate the same

conda create -p venv python==3.9
conda activate venv/
  1. Install the required packages
pip install -r requirements.txt
  1. Run the app
python application.py

Deployments


User interface web-api has been deployed on Render: Insurance Premium Predictor

Next Steps


Next steps would include

  • incorporating MLOps like MLFlow, DVC.
  • increase database to introduce diversity.
  • incorporate XGBoost, Boosting, Bagging to check whether we can increase accuracy.

Feedback


Each and every feedback is very much appreciated. It will help me implement better and increase efficiency in developing robust models.

Till then, take care and happy predicting....

insurance-premium-prediction's People

Contributors

mraabhijit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.