Skip to content

Commit 75905e0

Browse files
authored
odsc_72455: Update global explanation calculation to use absolute values (#1183)
2 parents 28881eb + 4179bbe commit 75905e0

File tree

1 file changed

+1
-1
lines changed
  • ads/opctl/operator/lowcode/forecast/model

1 file changed

+1
-1
lines changed

ads/opctl/operator/lowcode/forecast/model/prophet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def explain_model(self):
304304
# Global Expl
305305
g_expl = self.drop_horizon(expl_df).mean()
306306
g_expl.name = s_id
307-
global_expl.append(g_expl)
307+
global_expl.append(np.abs(g_expl))
308308
self.global_explanation = pd.concat(global_expl, axis=1)
309309
self.formatted_global_explanation = (
310310
self.global_explanation / self.global_explanation.sum(axis=0) * 100

0 commit comments

Comments
 (0)