Loading topic
fit, transform, predict). It also assumes you know why training data and test data are kept apart. The previous chapter explained why missing values need 7 min readSimpleImputer once on a small array. It also assumes you can read a NumPy array with np.nan in it and that you know what a skewed distribution is. The earlier chapters introduced fit, transform7 min readtransform on a SimpleImputer, that you know what statistics_ holds, and that you have used pandas DataFrames. You will learn how the imputer decides which entries to fill, how to point it at a sentinel value such as -1 or "?", and what goes wrong w8 min readSimpleImputer handles text and category columns, and how fill_value controls the constant it writes. It assumes you know the fit/transform pattern, have used SimpleImputer on numeric data, and know what ColumnTransformer and Pipeline are. The examples need sciki6 min readtrain_test_split, know the scikit-learn fit/transform/predict pattern, and have used SimpleImputer on a small array. The chapter covers where fit must run, the mistakes that break that rule, and how a Pipeline enforces it.7 min readSimpleImputer works (fit, transform, statistics_). It also assumes you can use pandas DataFrames and understand why you fit preprocessing on training data only. By the end you will build one object that imputes, scales and encodes a mixed-type table. You wil6 min readSimpleImputer and read its statistics_ attribute. It also assumes you know why imputers must be fitted on training data only, and that you have used Pipeline and ColumnTransformer. Here you will learn what add_indicator=True does, how it behaves o7 min readSimpleImputer behaves in ways the basic examples don't show. It looks at columns with no observed values, the effect of input dtype, and how output columns are named and counted. I assume you can fit and transform with SimpleImputer, read statistics_, a7 min readfit/transform pattern, have used SimpleImputer inside a Pipeline or ColumnTransformer, and understand why imputers are fitted on training data only. The goal is to tell when a single column statistic is a poor guess, and what to use instead.7 min read