-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MinMaxScaler is not array API compliant if clip=True #29607
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
Comments
Thanks for the report. Indeed, we need to change the code to use Any taker for a quick PR? @StefanieSenger @EmilyXinyi maybe? One question though: I am not sure to which extent with want to test estimators for array API compat with non-default hparams. This can quickly lead to a combinatorial explosion of test cases. |
Indeed! I believe this may be most practically with static type checkers. Unfortunatelly, there is no |
I would have a look and try to make a PR. |
Just adding a comment: I believe for reference: |
Thank you a lot @EmilyXinyi! That was very helpful. I didn't see that you have worked on |
This comment was marked as spam.
This comment was marked as spam.
@Siddharth-Latthe-07 please don't go around posting replies on many issues indiscriminatingly. For example in this case there is already a Pull Request that addresses the issue. |
This does not apply here since the |
Describe the bug
The
MinMaxScaler
is listed as array API compliant, but uses non compliant code under some configuration. Namely, it callsclip
(link to standard) with the non-standardout
kwarg here.While this particular fix may be simple, I am a bit unsure how to best test for array API compliance. The
array-api-strict
package is only implemented up to version2022.12
of the standard which didn't includeclip
yet. I actually discovered the bug using the lazyndonnx
package, but it does not serve well as a reproducer here since I also run into other, earlier, issues related to eager data validation.Steps/Code to Reproduce
Expected Results
I expected that
MinMaxScaler.transform
would just work with a standard compliant implementation.Actual Results
The
array-api-strict
package is lagging behind and fails with the notice thatclip
is not implemented, yet.Versions
The text was updated successfully, but these errors were encountered: