Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import matplotlib.pyplot as plt
|
|
11 |
loaded_model = pickle.load(open("h22_xgb_Final(2).pkl", 'rb'))
|
12 |
|
13 |
# Setup SHAP Explainer for XGBoost
|
14 |
-
explainer = shap.
|
15 |
|
16 |
# Define the prediction function
|
17 |
def main_func(SupportiveGM, Merit, LearningDevelopment, WorkEnvironment, Engagement, WellBeing):
|
|
|
11 |
loaded_model = pickle.load(open("h22_xgb_Final(2).pkl", 'rb'))
|
12 |
|
13 |
# Setup SHAP Explainer for XGBoost
|
14 |
+
explainer = shap.Explainer(loaded_model)
|
15 |
|
16 |
# Define the prediction function
|
17 |
def main_func(SupportiveGM, Merit, LearningDevelopment, WorkEnvironment, Engagement, WellBeing):
|