File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
ads/opctl/operator/lowcode/forecast/model Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -476,11 +476,15 @@ def explain_model(self):
476
476
# Fall back to the default explanation generation method
477
477
super ().explain_model ()
478
478
except Exception as e :
479
- self .errors_dict [s_id ] = {
480
- "model_name" : self .spec .model ,
481
- "error" : str (e ),
482
- "error_trace" : traceback .format_exc (),
483
- }
479
+ if s_id in self .errors_dict :
480
+ self .errors_dict [s_id ]["explainer_error" ] = str (e )
481
+ self .errors_dict [s_id ]["explainer_error_trace" ] = traceback .format_exc ()
482
+ else :
483
+ self .errors_dict [s_id ] = {
484
+ "model_name" : self .spec .model ,
485
+ "explainer_error" : str (e ),
486
+ "explainer_error_trace" : traceback .format_exc (),
487
+ }
484
488
logger .warning (
485
489
f"Failed to generate explanations for series { s_id } with error: { e } ."
486
490
)
You can’t perform that action at this time.
0 commit comments