Loading topic
GridSearchCV, cross_val_score and clone all depend6 min readfit, predict and transform on built-in scikit-learn estimators. Here you will learn what each base class gives you for free, what it leaves for you to write, and why the order of the base clas5 min readfit, predict and transform, and know what cross-validation does. It explains the rule for __init__ in a scikit-learn estimator, why the rule exists, and which errors appear when you break it.4 min read__init__ and methods, and that you have used fit, transform and predict on built-in scikit-learn estimators. It also assumes you have read the earlier chapters on the estimator contract and on constructor rules. Here you will see how an 6 min readfit, transform and predict on built-in scikit-learn estimators. It also assumes you have seen the earlier chapters' rules: constructors only store parameters, and learned attributes end with an underscore. Here you 6 min readfit, transform and Pipeline on built-in scikit-learn objects. It also assumes you know the constructor and trailing-underscore conventions from the earlier chapters. Here you put them together into one4 min readPipeline, you know what fit and transform do, and you have read the chapters on BaseEstimator and the constructor rules. Here you will learn when a plain function can replace a custom transformer class. You will also learn how to wrap it corr5 min readBaseEstimator, constructor rules, trailing-underscore attributes, and input validation. You should also be comfortable with cross_val_score and Pipeline. Here you apply those rules to a predictor: a classifier t4 min readBaseEstimator and TransformerMixin. It also assumes your estimators store constructor arguments unchanged, end learned attributes with _, and validate input with check_array and check_is_fitted. You should have used Pipeline and `ColumnTran5 min readBaseEstimator and TransformerMixin, and that you know how Pipeline and cross-validation work. It explains how scikit-learn copies and reconfigures your estimator during a search. It also shows which constructor habits break that proc5 min readBaseEstimator and TransformerMixin, and that you know how Pipeline and ColumnTransformer chain steps. It covers how a custom transformer reports the names of its output columns, and how users can get a pandas DataFrame back from `transfor5 min readBaseEstimator and a mixin, and that you know the constructor rule (store arguments unchanged) and the trailing-underscore rule (learned attributes end in _). It also assumes you have run Pipeline and GridSearchCV before. Here you will learn to 6 min readBaseEstimator and TransformerMixin, and that you know the fit, transform and predict contract. It also assumes you have used check_array, check_is_fitted and Pipeline. It covers how an estimator declares its capabil5 min readBaseEstimator, the constructor rules, learned attributes with a trailing underscore, Pipeline, and GridSearchCV. It collects the errors that most often break a custom estimator, shows why each one fails inside scikit-learn's machinery,4 min read