An open API service indexing awesome lists of open source software.

https://github.com/neuraladitya/attritionpredict

πŸ”AttritionPredict is a comprehensive HR analytics dashboard built with Streamlit, designed to help organizations analyze and predict employee attrition using IBM's HR dataset.
https://github.com/neuraladitya/attritionpredict

Last synced: 10 months ago
JSON representation

πŸ”AttritionPredict is a comprehensive HR analytics dashboard built with Streamlit, designed to help organizations analyze and predict employee attrition using IBM's HR dataset.

Awesome Lists containing this project

README

          

# πŸ“Š AttritionPredict – Advanced HR Analytics Dashboard

![Python](https://img.shields.io/badge/Python-3.12-blue?style=for-the-badge&logo=python&logoColor=white)
![Streamlit](https://img.shields.io/badge/Streamlit-FF4B4B?style=for-the-badge&logo=streamlit&logoColor=white)
![NumPy](https://img.shields.io/badge/NumPy-1.x-013243?style=for-the-badge&logo=numpy&logoColor=white)
![Matplotlib](https://img.shields.io/badge/Matplotlib-3.x-FF5722?style=for-the-badge&logo=matplotlib&logoColor=white)
![Plotly](https://img.shields.io/badge/Plotly-1.0-1E88E5?style=for-the-badge&logo=plotly&logoColor=white)
![License: MIT](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)

---

## πŸš€ Overview

An interactive, feature-rich **HR Analytics Dashboard** built using **Streamlit** to explore, analyze, and predict employee attrition using IBM's HR dataset. Designed for strategic decision-makers, HR professionals, and data enthusiasts who seek **deep workforce insights** through interactive visualizations, statistical modeling, and machine learning techniques.

## πŸ–ΌοΈ UI Preview

![App Screenshot](assets/ui_screenshot.png)

## 🎯 Analysis Output Screenshot

![Prediction Result](assets/prediction_screenshot.png)

## 🎯 AI & ML Output Screenshot

![Prediction Result](assets/ml_screenshot.png)

---

## πŸš€ Key Features

### πŸ“Œ Executive Overview
- Interactive **KPI Gauges** (Attrition Rate, Tenure, Income, etc.)
- **3D Visual Analysis** with hover-driven storytelling
- Dynamic filtering for real-time data slicing

### πŸ“Š Advanced Analytics
- **Parallel Coordinates Plots** for multi-dimensional data views
- **Sunburst Charts** and **Radar Plots** for categorical pattern discovery
- **Waterfall Charts** to visualize factor-wise attrition breakdown

### 🧠 Machine Learning Insights
- **Principal Component Analysis (PCA)** for dimensionality reduction
- **Clustering Algorithms** (K-Means, DBSCAN) for grouping employee types
- **Predictive Models** (Logistic Regression, Decision Trees) for attrition forecasting
- **Model Evaluation** with metrics like accuracy, ROC-AUC

### πŸ“ˆ Statistical Deep-Dive
- **Correlation Matrices & Heatmaps**
- **Cohort Analysis** to understand retention by join period
- **Survival Analysis** to analyze employee tenure distributions

### 🧾 Reporting & Exporting
- Auto-generated **Strategic Recommendations**
- Export **all visuals, dataframes, and model outputs** to CSV, PNG

---

## πŸ“Š Technologies Used

- **Frontend**: Streamlit
- **Data**: Pandas, NumPy
- **Visuals**: Plotly, Seaborn, Matplotlib, Altair
- **ML & Stats**: Scikit-learn, Lifelines, SciPy, Statsmodels

---

## πŸ—‚οΈ Project Structure

```
MoneyMind/
β”‚
β”œβ”€β”€ πŸ“ data/ # Sample and uploaded datasets
β”œβ”€β”€ πŸ“ models/ # Trained machine learning models
β”œβ”€β”€ πŸ“ pages/ # Streamlit multipage structure
β”œβ”€β”€ πŸ“ reports/ # Exported charts and reports
β”œβ”€β”€ πŸ“œ app.py # Main Streamlit app
β”œβ”€β”€ πŸ“œ utils.py # Helper functions
β”œβ”€β”€ πŸ“œ requirements.txt # Project dependencies
└── πŸ“œ README.md # Project documentation
```

---

## πŸ› οΈ How to Run

1. Clone the repository:
```bash
git clone https://github.com/yourusername/AttritionPredict.git
cd AttritionPredict
```

2. Create a virtual environment (optional but recommended):
```bash
python -m venv venv
.\venv\Scripts\activate
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

4. Run the app:
```bash
streamlit run app.py
```

5. If you face issues with 0.0.0.0, use:
```
streamlit run app.py --server.address=localhost --server.port=8501
```
---
## πŸ“Œ Future Improvements

Real-time API integration with HRMS

Auth-enabled HR manager login

Time-series forecasting of attrition trends

Feedback-driven model fine-tuning

---

## πŸ“˜ License

This project is licensed under the MIT License – see the [LICENSE](/license.txt) file for details.

---

## πŸ™Œ Credits

Made with ❀️ by [Aditya Arora](https://www.linkedin.com/in/NeuralAditya)
Β© 2025 Aditya Arora. All rights reserved.

---