Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

πŸ“Š HR Employee Attrition Prediction using Logistic Regression

Tool Model ML Accuracy AUC

πŸ“Œ Overview

This project focuses on predicting employee attrition (Yes/No) using Logistic Regression in Orange. The workflow includes data preprocessing, model building, and performance evaluation using ROC Curve and Confusion Matrix.


🎯 Objective

  • Predict whether an employee will leave the company
  • Identify key factors affecting attrition
  • Evaluate model performance using classification metrics

πŸ› οΈ Tools & Technologies

  • Orange
  • Logistic Regression
  • CSV Dataset

πŸ”„ Workflow

  1. Data Import (CSV File)
  2. Feature Selection
  3. Data Sampling (Train/Test Split)
  4. Logistic Regression Model
  5. Predictions
  6. Evaluation (ROC Curve & Confusion Matrix)

πŸ“Š Results

  • Accuracy: 84.3%
  • AUC Score: 0.715
  • Precision: 0.775
  • Recall: 0.843
  • F1 Score: 0.775

πŸ“ˆ Key Insights

  • Job Satisfaction, Work-Life Balance, and Environment Satisfaction significantly impact attrition
  • Model performs well for non-attrition cases
  • Lower performance for predicting actual attrition (class imbalance issue)

⚠️ Limitations

  • Model shows bias toward majority class (No Attrition)
  • Nagelkerke RΒ² = 0.11 (low explanatory power)

πŸ“š What I have learnt

  • Built and evaluated a Logistic Regression model end-to-end
  • Learned key metrics, ROC-AUC, and handling class imbalance

πŸ“‚ Project Files

https://1drv.ms/x/c/f483042b9735aab9/IQBuTG1kG7yUTowkiHjBAhLtAUGpzdPfJU2GjwXlHpw21lM?e=vYowkh β†’ Input dataset

Orange work flow

https://1drv.ms/u/c/f483042b9735aab9/IQB7LGdyzxg7QqFAJA_OT81PAVsU9RcF26VuCRGbM1UzhfM?e=xjcKZ9

4

Model outputs

ROC Curve

3

Confusion Matrix

5


πŸ‘©β€πŸ’» Author - Dhathri Narne


⭐ If you like this project, give it a star!

About

Logistic Regression model built in Orange to predict employee attrition with 84% accuracy and AUC of 0.71, including ROC analysis and confusion matrix evaluation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors