-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Move all data-independent fit-params to __init__
.
#4107
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
These need to be done with a deprecation warning right? |
Yes, indeed. |
Can i take this up? |
Sure! :) |
Per @amueller 's comment, made a quick & dirty little script that may help track them down @akshayah3
yields:
|
slight modification from sklearn.utils.testing import all_estimators
import inspect
for name, Estimator in all_estimators():
methods = inspect.getmembers(Estimator, predicate=inspect.ismethod)
for m_name, method in methods:
if m_name == 'fit':
args, _, _, _ = inspect.getargspec(method)
others = set(args) - set(['self', 'X', 'y', 'Y', 'sample_weight'])
if others:
print '%30s' % name, list(others)
|
Also thanks @trevorstephens :) |
NP :) BTW |
Maybe. It was more of a but-fix, though, as it was ignored. |
Update:
|
QDA and LDA need deprecations. |
I thought we already did that, but QDA still has
tol
in fit.I'm pretty sure we can list all fit params using a small snipplet and then go over them by hand.
The text was updated successfully, but these errors were encountered: