-
Notifications
You must be signed in to change notification settings - Fork 724
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
Comments
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) Could you then post the output of those two lines (assuming the data is not sensitive)? They may provide clues. |
*Ok, Let I send you the output...*
[image: image.png]
[image: image.png]
…On Wed, Jul 26, 2023 at 11:17 AM owendw1 ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWD4JBMJED5L2TIIOSABQZTXSFNMFANCNFSM6AAAAAA2YGRQ7I>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
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. |
OK dear,
Now I would like to give further clarification & some pieces of code as
below:
1. My data have the following shapes..
[image: image.png]
2. Here is My Total Data Visualization
[image: image.png]
3. From 46 columns, I select 33-best columns for my train & test purpose
so that I Take 24-column data for training & the remaining 9- columns for
tasting by 70/30 split & all of them are numeric column that hold one
company energy consumption history
[image: image.png]
4, After that, I already tested more than four (4) Prediction algorithms to
test best accurate prediction model
[image: image.png]
[image: image.png]
[image: image.png]
*5, Finally, I want to calculate confusion matrix..... Here I put the code
that i traid with encountered error... as below *
[image: image.png]
[image: image.png]
I think now you may understand my code...
and if you are willing to support me, we can meet online, & I can show you
the full code from start up to end
Thanks for your Support.
…On Thu, Jul 27, 2023 at 10:01 AM owendw1 ***@***.***> wrote:
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 its aiming to do.
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWD4JBK6MUH3VJW5R7GKELTXSKNHTANCNFSM6AAAAAA2YGRQ7I>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
*Dear Have a good day!*
*Please, would you support me?*
On Fri, Jul 28, 2023 at 12:10 AM Zeleke Marew ***@***.***>
wrote:
… OK dear,
Now I would like to give further clarification & some pieces of code as
below:
1. My data have the following shapes..
[image: image.png]
2. Here is My Total Data Visualization
[image: image.png]
3. From 46 columns, I select 33-best columns for my train & test purpose
so that I Take 24-column data for training & the remaining 9- columns for
tasting by 70/30 split & all of them are numeric column that hold one
company energy consumption history
[image: image.png]
4, After that, I already tested more than four (4) Prediction algorithms
to test best accurate prediction model
[image: image.png]
[image: image.png]
[image: image.png]
*5, Finally, I want to calculate confusion matrix..... Here I put the code
that i traid with encountered error... as below *
[image: image.png]
[image: image.png]
I think now you may understand my code...
and if you are willing to support me, we can meet online, & I can show you
the full code from start up to end
Thanks for your Support.
On Thu, Jul 27, 2023 at 10:01 AM owendw1 ***@***.***> wrote:
> 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 its aiming to do.
>
> —
> Reply to this email directly, view it on GitHub
> <#1541 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AWD4JBK6MUH3VJW5R7GKELTXSKNHTANCNFSM6AAAAAA2YGRQ7I>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***
> com>
>
|
Dears,
When I try to Calculate Confusion matrix, encountered an error
Please support me as per the following error...
The text was updated successfully, but these errors were encountered: