[FEATURE] Pass additional parameters to fit underlying estimator in `EstimatorTransformer`
See original GitHub issueIn EstimatorTransformer
the underlying estimator is being fitted without the ability to pass along additional arguments to self.estimator_.fit
.
This limits use cases for EstimatorTransformer
. For example, if the underlying estimator is an XGBClassifier
we would like to be able to pass eval_set
to monitor validation performance and enable early stopping. This is currently not possible. Adding *args, **kwargs
should fix this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Developing scikit-learn estimators
The fit() method takes the training data as arguments, which can be one array in the case of unsupervised learning, or two arrays...
Read more >Developing custom scikit-learn transformers and estimators
Estimators have get_params and set_params functions. The get_params function takes no arguments and returns a dict of the __init__ parameters of ...
Read more >Overview: estimators, transformers and pipelines - spark.ml
An Estimator abstracts the concept of a learning algorithm or any algorithm that fits or trains on data. Technically, an Estimator implements a...
Read more >User guide: create your own scikit-learn estimator
Transformers are scikit-learn estimators which implement a transform method. The use case is the following: at fit , some parameters can be learned...
Read more >Custom Transformer · Issue #391 · ageron/handson-ml - GitHub
In some cases, you may want to pass extra arguments to the fit() method. ... arguments through to the underlying estimator's fit() method....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
TIL.
Yeah so if scikit-learn supports
**kwargs
then I won’t mind.Ah! Crud. My bad.
I was confused with the Grouped variant of the meta estimators. These come with a predictor variant.
Please ignore the previous comment.