File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
ads/opctl/operator/lowcode/forecast/model Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -257,11 +257,10 @@ def _generate_report(self):
257
257
self .formatted_global_explanation = (
258
258
global_explanation_df / global_explanation_df .sum (axis = 0 ) * 100
259
259
)
260
- self .formatted_global_explanation = (
261
- self .formatted_global_explanation .rename (
262
- {self .spec .datetime_column .name : ForecastOutputColumns .DATE },
263
- axis = 1 ,
264
- )
260
+
261
+ self .formatted_global_explanation .rename (
262
+ columns = {self .spec .datetime_column .name : ForecastOutputColumns .DATE },
263
+ inplace = True ,
265
264
)
266
265
267
266
aggregate_local_explanations = pd .DataFrame ()
@@ -430,7 +429,7 @@ def explain_model(self):
430
429
if self .spec .explanations_accuracy_mode == SpeedAccuracyMode .AUTOMLX :
431
430
# Use the MLExplainer class from AutoMLx to generate explanations
432
431
explainer = automlx .MLExplainer (
433
- self .models [s_id ],
432
+ self .models [s_id ][ "model" ] ,
434
433
self .datasets .additional_data .get_data_for_series (
435
434
series_id = s_id
436
435
)
You can’t perform that action at this time.
0 commit comments