Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import pandas as pd
|
2 |
import shap
|
3 |
import gradio as gr
|
@@ -85,8 +86,10 @@ title = "**Mod 3 Team 5: Employee Turnover Predictor & Interpreter**"
|
|
85 |
description1 = """
|
86 |
This app evaluates six key factors affecting employee satisfaction—Supportive GM, Merit, Learning & Development, Work Environment, Engagement, and Well-Being—to predict whether an employee is likely to stay with Hilton or leave.
|
87 |
The app provides two key outputs:
|
|
|
88 |
**Predicted Probability**
|
89 |
A likelihood score indicating whether an employee will stay or leave.
|
|
|
90 |
**SHAP Force Plot**
|
91 |
A dynamic visualization that illustrates how each factor influences the prediction, helping to pinpoint the most impactful drivers of employee retention.
|
92 |
Designed for HR teams at both departmental and hotel chain levels, this tool delivers data-driven insights to improve employee experience and retention strategies across Hilton properties.
|
|
|
1 |
+
import pickle
|
2 |
import pandas as pd
|
3 |
import shap
|
4 |
import gradio as gr
|
|
|
86 |
description1 = """
|
87 |
This app evaluates six key factors affecting employee satisfaction—Supportive GM, Merit, Learning & Development, Work Environment, Engagement, and Well-Being—to predict whether an employee is likely to stay with Hilton or leave.
|
88 |
The app provides two key outputs:
|
89 |
+
|
90 |
**Predicted Probability**
|
91 |
A likelihood score indicating whether an employee will stay or leave.
|
92 |
+
|
93 |
**SHAP Force Plot**
|
94 |
A dynamic visualization that illustrates how each factor influences the prediction, helping to pinpoint the most impactful drivers of employee retention.
|
95 |
Designed for HR teams at both departmental and hotel chain levels, this tool delivers data-driven insights to improve employee experience and retention strategies across Hilton properties.
|