GithubHelp home page GithubHelp logo

ambatkar / employee-attrition-prediction-job-a-thon Goto Github PK

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

Analytics Vidhya ๐Ÿ”Ž Job-A-Thon Nov 2021 | Employee Attrition Prediction

Jupyter Notebook 100.00%

employee-attrition-prediction-job-a-thon's Introduction

Data-Science-Job-A-Thon ๐ŸŒ๏ธโ€โ™€๏ธ

Analytics Vidhya ๐Ÿ”Ž Job-A-Thon Nov 2021 | Employee Attrition Prediction

Problem :

You are working as a data scientist with HR Department of a large insurance company focused on sales team attrition. Insurance sales teams help insurance companies generate new business by contacting potential customers and selling one or more types of insurance. The department generally sees high attrition and thus staffing becomes a crucial aspect.

To aid staffing, you are provided with the monthly information for a segment of employees for 2016 and 2017 and tasked to predict whether a current employee will be leaving the organization in the upcoming two quarters (01 Jan 2018 - 01 July 2018) or not, given:

Demographics of the employee (city, age, gender etc.) Tenure information (joining date, Last Date) Historical data regarding the performance of the employee (Quarterly rating, Monthly business acquired, designation, salary)

Approach :

๐Ÿ›€ CLEANING the Data was not much of an issue and Data only had Nan values of employee not leaving on specific day of the logs written.

Adding Features before EDA

  • Total Number of working Months
  • Employee Attrited
  • Converting Education to variables (Master - 3, Bachelors - 2, College - 1)
  • Have employee got Promotion
  • Sum of Total Bussiness
  • Mean of Quraterly rating

๐Ÿ“… EDA Reviewing the Data at first we can see that

  • Employee working for the long time are not leaving the Job.
  • Employee Aged 21-24 and 48+ have higher attrition rates.
  • Employee with Relatively less salaried, left the company.
  • Male having higher Bussiness tend to work.

๐Ÿ‘ทโ€โ™‚๏ธ Feature Engineering Done One Hot Encoding of Gender and City. Added 6 Months to the the total Working for the future Predictions

Using Sklearn Library Trainied SVM, Logistic Regression, AdaBoostClassifier and RandomForestRegressor Among these Model SVM with GridSearchCV Performed the Best which gave 76.78%

*Ending Note and What Did I learn:

  • I Scored 65.05% Score on Leader Board on SVM with GridSearchCV but My earlier Predictions with Default SVM model (With Education Added in features gave 70.10% on LeaderBoard)
  • In the code file i have not used Employee Education Feature, Initially it did gave a better results in the compitition but Final board says different
  • I could have use more efficient Algorithms Like GradientBoost or CatBoost

employee-attrition-prediction-job-a-thon's People

Contributors

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