-
-
Notifications
You must be signed in to change notification settings - Fork 26k
Bug in common tests: should use utils.testing._get_args #9350
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
Is this still an open issue? I don't see any usages of inspect in
|
@tsdlovell - After looking at the code a bit, it's possible I'm working on this. My first step is to confirm the issue still exists by writing a test. |
Discussed this with @amueller and we agreed the most direct approach to confirming this issue is to create a unit test for If |
…o work with @deprecated in Python 2 (#11277)
…_takes_y() to work with @deprecated in Python 2 (scikit-learn#11277)
Right now we are using
inspect
in some common tests (utils.estimator_checks
) to get method arguments. But that doesn't work if the method is decorated, for example with a deprecation.In that case we need to use
utils.testing._get_args
. So we need to make sure to use that whenever we inspect arguments.A good test would be to create a model that has all methods deprecated and see if the tests still pass.
We should also check whether the
sample_weights
are detected correctly.The text was updated successfully, but these errors were encountered: