Skip to content

Commit

Permalink
Fix responsibleai toolbox build failures due to dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Jun 27, 2024
1 parent 1570b17 commit 608599e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raiwidgets/raiwidgets/fairness_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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:
Expand Down

0 comments on commit 608599e

Please sign in to comment.