Code Monkey home page Code Monkey logo

income-census-prediction's Introduction

Income Price Prediction

To build a classification methodology to determineto whether a person’s income is above 50k or below 50k using various features like age, education, and occupation.

Table Content ✏️

  • Overview
  • Dataset
  • Installation
  • Deployment
  • Documentation
  • Technology Used
  • Motivation
  • Conclusion
  • Contribution

Overview 📜

We will predict whether the person's income is above 50K or below 50k using various features like age, education, and occupation. The application is a web app which is developed in Flask Framework.

Read more about it at Blogpost.

Dataset

The dataset we are going to use is the Adult census income dataset from Kaggle which contains about 32561 rows and 15 features that can be downloaded here

Dataset link: https://www.kaggle.com/uciml/adult-census-income

Installations 🗄️

The Code is written in Python 3.8 If you don't have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

First you need to create a virtual conda enviornment.

  conda create -n myenv python=3.6
  pip install -r requirements.txt

Deployment

AWS Deployment Link: http://ec2-18-219-219-167.us-east-2.compute.amazonaws.com:8080/

Income Predictor

Directory

├── data
   ├──incomedata.csv
├── log_file
   ├── log_data.log
   ├── logger.py
├── static
   ├── image
   ├── ├── img.jpg
├── templates
   ├── database.html
   ├── index.html
├── Money_Laundering_EDA.ipynb
├── XGB_Classifier.pkl
├── Procfile
├── EDA.ipynb
├── app.py
├── model_rf.pkl
├── requirements.txt
├── runtime.txt
├── README.md

Technologies Used

  • Python
  • FrontEnd: HTML & CSS
  • Backend: Flask

Motivation

  • Building such predictive models can help us better understand the population of a country as well as the various factors affecting the growth in the economy.
  • Governments can understand such factors and improve upon them leading to the growth of the country.

Conclusion

  • In this project, we build various models like logistic regression, knn classifier, support vector classifier, decision tree classifier, random forest classifier and xgboost classifier.
  • A hyperparameter tuned random forest classifier gives the highest accuracy score of 92.77 and f1 score of 93.08.

Contributers

You can feel free to reach out me at [email protected]

@Shubham Mourya

income-census-prediction's People

Contributors

mshubham1 avatar

Stargazers

 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.