Skip to content

Commit 4179bbe

Browse files
committed
Update global explanation calculation to use absolute values
1 parent 28881eb commit 4179bbe

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

Lines changed: 1 addition & 1 deletion
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)