From 608599ed627683102ef6b9a3e94230f5013af172 Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Thu, 27 Jun 2024 17:40:29 -0400 Subject: [PATCH] Fix responsibleai toolbox build failures due to dependency updates --- raiwidgets/raiwidgets/fairness_dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raiwidgets/raiwidgets/fairness_dashboard.py b/raiwidgets/raiwidgets/fairness_dashboard.py index d6272f3630..bc32edaf4c 100644 --- a/raiwidgets/raiwidgets/fairness_dashboard.py +++ b/raiwidgets/raiwidgets/fairness_dashboard.py @@ -149,6 +149,8 @@ def metrics(): ][0].values()), }} if error_function_name in metric_method: + group_by_error = metric_frame.by_group[error_function_name] + bounds_list = list(group_by_error.to_dict().values()) result["data"].update({ "bounds": { "lower": @@ -161,9 +163,7 @@ def metrics(): "lower": bounds[0], "upper": bounds[1] } - for bounds in list( - metric_frame.by_group[error_function_name]\ - .to_dict().values())] + for bounds in bounds_list] }) return jsonify(result) except Exception as ex: