Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
Signed-off-by: thibaultdvx <[email protected]>
  • Loading branch information
thibaultdvx committed Sep 18, 2024
1 parent c9ee60c commit 838d0a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion monai/metrics/r2_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,6 @@ def compute_r2_score(
if multi_output == MultiOutput.VARIANCE:
weights = np.var(y, axis=1)
return np.average(r2_values, weights=weights) # type: ignore[no-any-return]
raise ValueError(f'Unsupported multi_output: {multi_output}, available options are ["raw_values", "uniform_average", "variance_weighted"].')
raise ValueError(
f'Unsupported multi_output: {multi_output}, available options are ["raw_values", "uniform_average", "variance_weighted"].'
)

0 comments on commit 838d0a1

Please sign in to comment.