# abdullanishat/employee-retention-prediction architecture

> Architecture diagram of the GitHub repository abdullanishat/employee-retention-prediction, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdullanishat/employee-retention-prediction
- Repository: https://github.com/abdullanishat/employee-retention-prediction

## Overview

This repository is a notebook-based employee-retention analysis. An analyst runs the notebook against the supplied HR dataset; the documented workflow explores and preprocesses the data, trains two classifiers, evaluates their performance, and draws HR insights. The notebook and dataset are the only implementation artifacts shown, so components below represent documented notebook stages rather than separately verified modules. Relationships are based on the README; notebook internals were not sampled.

Main entry points: [`Employee Retention Prediction.ipynb`](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb) (Data exploration), [`HR_comma_sep.csv`](https://github.com/abdullanishat/employee-retention-prediction/blob/main/HR_comma_sep.csv) (HR dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data analysis"]
  node_dataset["HR dataset<br/>[HR_comma_sep.csv]"]
  node_exploration["Data exploration"]
  node_preprocessing["Data preprocessing"]
end

subgraph group_models["Prediction models"]
  node_rf["Random Forest"]
  node_xgboost["XGBoost"]
end

subgraph group_results["Evaluation and insights"]
  node_evaluation["Model evaluation"]
  node_insights["HR insights"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs notebook"| node_exploration
node_exploration -->|"loads data"| node_dataset
node_exploration -->|"continues to"| node_preprocessing
node_preprocessing -->|"trains on data"| node_rf
node_preprocessing -->|"trains on data"| node_xgboost
node_rf -->|"evaluates model"| node_evaluation
node_xgboost -->|"evaluates model"| node_evaluation
node_evaluation -->|"informs decisions"| node_insights

click node_dataset "https://github.com/abdullanishat/employee-retention-prediction/blob/main/HR_comma_sep.csv"
click node_exploration "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"
click node_preprocessing "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"
click node_rf "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"
click node_xgboost "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"
click node_evaluation "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"
click node_insights "https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset,node_exploration,node_preprocessing toneBlue
class node_rf,node_xgboost toneAmber
class node_evaluation,node_insights toneMint
class node_analyst toneIndigo
```

## Components

### Data analysis

- [HR dataset](https://github.com/abdullanishat/employee-retention-prediction/blob/main/HR_comma_sep.csv): `HR_comma_sep.csv`
- [Data exploration](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`
- [Data preprocessing](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`

### Prediction models

- [Random Forest](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`
- [XGBoost](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`

### Evaluation and insights

- [Model evaluation](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`
- [HR insights](https://github.com/abdullanishat/employee-retention-prediction/blob/main/Employee%20Retention%20Prediction.ipynb): `Employee Retention Prediction.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → Data exploration: runs notebook (evidence: `README.md`)
- Data exploration → HR dataset: loads data (evidence: `README.md`)
- Data exploration → Data preprocessing: continues to (evidence: `README.md`)
- Data preprocessing → Random Forest: trains on data (evidence: `README.md`)
- Data preprocessing → XGBoost: trains on data (evidence: `README.md`)
- Random Forest → Model evaluation: evaluates model (evidence: `README.md`)
- XGBoost → Model evaluation: evaluates model (evidence: `README.md`)
- Model evaluation → HR insights: informs decisions (evidence: `README.md`)
