Is your feature request related to a problem? Please describe.
shape checks such as
|
if y.shape != y_pred.shape: |
|
raise ValueError("y_pred and y should have same shapes.") |
should provide more details about the current shapes for better usability.
raise ValueError(f"y_pred and y should have same shapes, got {y_pred.shape} and {y.shape}.")
would be great to review all the error messages... cc @Project-MONAI/core-reviewers
Is your feature request related to a problem? Please describe.
shape checks such as
MONAI/monai/metrics/meandice.py
Lines 122 to 123 in 82ec2fe
should provide more details about the current shapes for better usability.
would be great to review all the error messages... cc @Project-MONAI/core-reviewers