dlab-berkeley / Python-Machine-Learning

D-Lab's 6 hour introduction to machine learning in Python. Learn how to perform classification, regression, clustering, and do model selection using scikit-learn in Python.
Other
80 stars 68 forks source link

Estimators vs Transformers #4

Closed brooksjessup closed 2 years ago

brooksjessup commented 4 years ago

A small terminology issue: The regression notebook seems to confuse "estimators" and "transformers". The notebook refers, for example, to SimpleImputer as an estimator but I think it should be classified as a transformer. My understanding is that estimators involve prediction, whereas transformers do not (i.e. preprocessing). Here's a stackoverflow discussion: https://stackoverflow.com/questions/54899647/what-is-the-difference-between-transformer-and-estimator-in-sklearn

EastBayEv commented 3 years ago

https://stackoverflow.com/questions/54899647/what-is-the-difference-between-transformer-and-estimator-in-sklearn