-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Move non-data transform() parameters to the object #1975
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
When this is fixed for |
Can I take up this issue ? |
Hi, it seems that the issue has been fixed for In the
is it expected to be a class variable for this Mixin or the base class Also there is a comment mentioning that
Pardon my ignorance regarding the structure of classes, but which would be the best place to put the Thanks. |
_LearntSelectorMixin is deprecated, so not applicable either. On 4 January 2016 at 01:06, Maniteja Nandana [email protected]
|
Thanks. I realized that it was not exposed on the public API but thought that it needs to be fixed since it is being used in other places. Sorry for not thinking over it. |
@jnothman should we close this? Or first check if any models still have that with |
Apart from a number of
|
To be used sensibly in a
Pipeline
/ parameter search, an estimator'stransform
method can't have parameters other than the data (though it may be possible in the future to support more than one data argument). Rather, it should be possible to set the parameter using the estimator'sset_params
method as used in a parameter search.Hence additional arguments to
transform
should become object parameters (though whether they should be made unavailable as arguments directly to transform is up for debate).Unfortunately, these happen to appear in mixin classes, meaning a lot of sub-classes' docstrings need altering.
Examples of additional arguments:
scikit-learn/sklearn/cluster/_feature_agglomeration.py
Line 22 in 71d00d9
selection_threshold
parameter on objectThe text was updated successfully, but these errors were encountered: