File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ def _more_tags(self):
136136
137137
138138class SimpleImputer (_BaseImputer ):
139- """Imputation transformer for completing missing values.
139+ """Univariate imputer for completing missing values with simple strategies.
140+
141+ Replace missing values using a descriptive statistic (e.g. mean, median, or
142+ most frequent) along each column, or using a constant value.
140143
141144 Read more in the :ref:`User Guide <impute>`.
142145
@@ -224,13 +227,21 @@ class SimpleImputer(_BaseImputer):
224227
225228 See Also
226229 --------
227- IterativeImputer : Multivariate imputation of missing values.
230+ IterativeImputer : Multivariate imputer that estimates values to impute for
231+ each feature with missing values from all the others.
232+ KNNImputer : Multivariate imputer that estimates missing features using
233+ nearest samples.
228234
229235 Notes
230236 -----
231237 Columns which only contained missing values at :meth:`fit` are discarded
232238 upon :meth:`transform` if strategy is not `"constant"`.
233239
240+ In a prediction context, simple imputation usually performs poorly when
241+ associated with a weak learner. However, with a powerful learner, it can
242+ lead to as good or better performance than complex imputation such as
243+ :class:`~sklearn.impute.IterativeImputer` or :class:`~sklearn.impute.KNNImputer`.
244+
234245 Examples
235246 --------
236247 >>> import numpy as np
You can’t perform that action at this time.
0 commit comments