Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: multiclass-multioutput is not supported #1541

Open
zelekemarew opened this issue Jul 26, 2023 · 6 comments
Open

ValueError: multiclass-multioutput is not supported #1541

zelekemarew opened this issue Jul 26, 2023 · 6 comments

Comments

@zelekemarew
Copy link

Dears,
When I try to Calculate Confusion matrix, encountered an error
Please support me as per the following error...
image

@owendw1
Copy link

owendw1 commented Jul 26, 2023

It would be useful to see what y_test and y_pred look like immediately before the confusion_matrix method is called. Can you add the following two lines to your code immediately before the line conf_matrix = confusion_matrix(y_test, y_pred):

print('y_test:', y_test)
print('y_pred:', y_pred)

Could you then post the output of those two lines (assuming the data is not sensitive)? They may provide clues.

@zelekemarew
Copy link
Author

Ok, Let I send you the output...
image
image

@zelekemarew
Copy link
Author

zelekemarew commented Jul 27, 2023 via email

@owendw1
Copy link

owendw1 commented Jul 27, 2023

I can see why confusion_matrix might not like the shape of either y_test or y_pred, but I think we need to understand how they're being arrived at.

Are you doing multilabel classification? We might need to see your full code to understand what it's aiming to do.

@zelekemarew
Copy link
Author

zelekemarew commented Jul 28, 2023 via email

@zelekemarew
Copy link
Author

zelekemarew commented Jul 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants