Scikit-learn: Estimator objects and how to choose the right one

This recipe includes the following topics:

  • Estimator objects
  • Choosing the right estimator

Estimator objects

An estimator is an object that extracts useful features from raw data. It may be a classfication, regression, or clustering algorithm or a transformer.

1) Fitting data
– All estimator objects expose a fit() method

2) Estimator parameters
– All the parameters of an estimator can be set when it is instantiated

estimator = Estimator(param1=1, param2=2)

Choosing the right estimator

Leave a Reply

Your email address will not be published. Required fields are marked *