Git Product home page Git Product logo

employee_future_prediction's Introduction

Employee Future Prediction

Description

The dataset consists of dummy employee details of a company. It includes employees' education details, joining year, city of office, payment tier, age, gender, if the employee is ever kept out of projects for 1 month or more and experience in current field. The task is to predict whether the employee will leave the company in the next 2 years.

For the project, first I have done EDA and feature selection. Then, I have trained three models: LogisticRegression, RandomForestClassifier and XGBClassifier.

I have created a Pipeline for each of these models, such that the data transformation and model training/predictions steps are assembled together.

Tech Stack and concepts used

  • Python
  • Scikit-learn
  • Machine Learning Pipeline
  • Docker
  • Streamlit

Setup

  • Clone the project repo and open it.

Virtual Environment

  • Create a virtual environment for the project using

    pipenv shell
  • Install required packages using

    pipenv install

Docker Container

  • Build the docker image using

    sudo docker build -t employee_future .
  • Run the docker container using

    sudo docker run -p 5000:5000 employee_future
  • Open the URL http://localhost:5000/ to run and test the app.

Deploying to Cloud

  • Open the Deploy an app page of Streamlit.
  • Enter the GitHub repository details in which the streamlit_app.py file and model binaries are stored.
  • Click on Deploy button.
  • Open the URL employeefutureprediction.streamlit.app to run and test the app.

Prediction Results

Model Validation Set Accuracy Training+Validation Set Accuracy
LogisticRegression 81.20 % 80.12 %
RandomForestClassifier 85.28 % 89.04 %
XGBClassifier 85.93 % 87.37 %

Selected Model (RandomForestClassifier) Test Set Accuracy = 86.57 %

employee_future_prediction's People

Contributors

sumedhakoranga 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.