Loading topic
fit, transform, predict), and understand the difference between training and test data. You will fit a SimpleImputer, read what it learned, and see how it fills a matrix.3 min readfit and transform on a scikit-learn estimator, read a NumPy array with np.nan, and tell training data from test data. You have already seen SimpleImputer learn values into statistics_. Now you will decide which statistic it should learn.3 min readSimpleImputer with fit and transform and read statistics_. It also assumes you know the four strategies from the previous chapters. Here you will learn how the missing_values parameter decides which entries the imputer treats as gaps.3 min readSimpleImputer fit/transform pattern and the strategy parameter from the earlier chapters. You should also be comfortable with pandas DataFrames and the difference between numeric and string columns.3 min readfit, transform, predict), can use NumPy arrays and pandas DataFrames, and understand why data is split into training and test sets. It also assumes you have used SimpleImputer with the mean and median strategies.3 min readSimpleImputer strategies from earlier chapters, the fit/transform pattern, and why you fit on training data only. Here you will put those pieces into one object that handles numeric and categorical columns correctly.3 min readSimpleImputer, read statistics_, and use a Pipeline. It covers what imputation hides from a model and how add_indicator restores it.3 min readSimpleImputer with fit, transform and statistics_, and that you have seen it inside a ColumnTransformer. It covers three situations that tend to cause confusing bugs: columns with no observed values, data types the chosen strategy cannot handle, and colum3 min readSimpleImputer inside a Pipeline, and that you know why imputers are fitted on training data only. It covers where simple imputation breaks down and what to try next.3 min read