Closed Frightera closed 1 year ago
Thanks for the PR. It seems this is causing some tests to fail: https://github.com/keras-team/keras-core/actions/runs/5986373040/job/16239435975?pr=796
Hi @fchollet,
Checked the tests actually:
Is this a correct usage of class_id
in this case? The test uses a binary classification setting and passing class_id
as 2
. I thought class_id
was valid for multiclass classification.
The other tests follow the same structure.
Is this a correct usage of class_id in this case? The test uses a binary classification setting and passing class_id as 2. I thought class_id was valid for multiclass classification.
It's not -- the tests need to be edited.
OK, I'll update the related tests in a few days.
Hi @fchollet,
I updated the tests, can you review the PR now?
Thanks.
Consider the case:
If one of the inputs are 1D and
class_id
is provided, the code will still execute without any errors, but it seems like the results may not be what we expect. It effectively reduces the inputs to a single value right now.So I added a check before using
class_id
🤔 or is this something intended? If not, the tests need to be updated aswell.