Skip to content

Applying metrics #1696

Answered by rijobro
Meddebma asked this question in Q&A
Mar 5, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

As the error indicates, the y_pred of compute_roc_auc is expected to be a 1- or 2D array with the predicted classes. In your case, however, you are passing your segmented image.

Some metrics make sense for classification but don't make sense for segmentation. ROC/AUC and confusion matrices are examples of this (e.g., see this blog post).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Meddebma
Comment options

Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants