eduvance/employee_attrition
Viewer β’ Updated β’ 1.37k β’ 107 β’ 2
Run dev91205/employee-growth-score-predictor on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/dev91205/employee-growth-score-predictor. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/dev91205/employee-growth-score-predictor on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use dev91205/employee-growth-score-predictor with Scikit-learn:
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
hf_hub_download("dev91205/employee-growth-score-predictor", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.htmlA Gradient Boosting Regression model that predicts an employee's growth score (0-100) based on their HR profile features.
This model predicts a composite "Employee Growth Score" that captures an employee's overall career growth trajectory. The score is engineered from multiple HR dimensions:
| Component | Weight | Description |
|---|---|---|
| Promotion Velocity | 25% | How frequently the employee gets promoted |
| Job Level Achievement | 20% | Current job level (1-5 scale) |
| Income-to-Experience Ratio | 20% | Earning power relative to years of experience |
| Satisfaction Composite | 15% | Combined job + environment satisfaction |
| Job Involvement | 10% | Level of engagement and involvement |
| Retention Signal | 10% | Whether the employee is retained (vs. attrited) |
| Metric | Value |
|---|---|
| Test RΒ² | 0.8997 |
| Test RMSE | 4.0360 |
| Test MAE | 2.9716 |
| CV RΒ² (mean Β± std) | 0.8631 Β± 0.0194 |
| Feature | Importance |
|---|---|
| YearsSinceLastPromotion | 0.3244 |
| MonthlyIncome | 0.2196 |
| YearsAtCompany | 0.0937 |
| JobLevel | 0.0893 |
| JobSatisfaction | 0.0704 |
| EnvironmentSatisfaction | 0.0633 |
| JobInvolvement | 0.0574 |
| TotalWorkingYears | 0.0316 |
| DailyRate | 0.0122 |
| Age | 0.0098 |
| YearsInCurrentRole | 0.0076 |
| DistanceFromHome | 0.0066 |
| MaritalStatus_Num | 0.0048 |
| JobRole_Num | 0.0042 |
| YearsWithCurrManager | 0.0022 |
| BusinessTravel_Num | 0.0021 |
| Department_Num | 0.0008 |
import joblib
import numpy as np
from huggingface_hub import hf_hub_download
# Download and load model
model_path = hf_hub_download(
repo_id="dev91205/employee-growth-score-predictor",
filename="employee_growth_model.joblib"
)
model = joblib.load(model_path)
# Feature order: Age, BusinessTravel_Num, DailyRate, Department_Num,
# DistanceFromHome, EnvironmentSatisfaction, JobInvolvement, JobLevel,
# JobRole_Num, JobSatisfaction, MaritalStatus_Num, MonthlyIncome,
# TotalWorkingYears, YearsAtCompany, YearsInCurrentRole,
# YearsSinceLastPromotion, YearsWithCurrManager
employee = np.array([[30, 2, 800, 2, 5, 3, 3, 2, 5, 3, 1, 5000, 8, 5, 3, 1, 3]])
score = model.predict(employee)
print(f"Growth Score: {score[0]:.1f}/100")
| Score Range | Category | Description |
|---|---|---|
| 75-100 | π’ HIGH GROWTH | Strong career trajectory, ready for advancement |
| 50-74 | π‘ MODERATE GROWTH | Solid performance, potential for development |
| 25-49 | π LOW GROWTH | Needs attention, potential stagnation |
| 0-24 | π΄ AT RISK | Requires immediate development support |
| Parameter | Value |
|---|---|
| learning_rate | 0.05 |
| max_depth | 3 |
| min_samples_split | 10 |
| n_estimators | 500 |
| subsample | 0.8 |