Skip to content

Commit

Permalink
Merge branch 'add_class_label_option_to_write_metric_report' of https…
Browse files Browse the repository at this point in the history
…://github.com/elitap/MONAI into add_class_label_option_to_write_metric_report

Signed-off-by: elitap <[email protected]>
  • Loading branch information
elitap committed Nov 21, 2023
2 parents 708fcbb + 3cf19d0 commit a95c816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monai/handlers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class mean median max 5percentile 95percentile notnans
else:
class_labels = [str(i) for i in class_labels] # ensure to have a list of str


class_labels += ["mean"]
v = np.concatenate([v, np.nanmean(v, axis=1, keepdims=True)], axis=1)

Expand Down

0 comments on commit a95c816

Please sign in to comment.