From c4e9585f000fc0716ce7e16180277901e26249e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Alfaro=20Jim=C3=A9nez?= Date: Tue, 16 Feb 2021 10:49:15 +0100 Subject: [PATCH 1/2] DOC Fix closing prime character in IterativeImputer --- sklearn/impute/_iterative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/impute/_iterative.py b/sklearn/impute/_iterative.py index 81ae946459a3a..99661804e63aa 100644 --- a/sklearn/impute/_iterative.py +++ b/sklearn/impute/_iterative.py @@ -69,7 +69,7 @@ class IterativeImputer(_BaseImputer): imputations computed during the final round. A round is a single imputation of each feature with missing values. The stopping criterion is met once `max(abs(X_t - X_{t-1}))/max(abs(X[known_vals]))` < tol, - where `X_t` is `X` at iteration `t. Note that early stopping is only + where `X_t` is `X` at iteration `t`. Note that early stopping is only applied if ``sample_posterior=False``. tol : float, default=1e-3 From 303c710bc74f19a8d9a66966f300a3ef8b530993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Alfaro=20Jim=C3=A9nez?= Date: Wed, 17 Feb 2021 10:56:46 +0100 Subject: [PATCH 2/2] Update sklearn/impute/_iterative.py Co-authored-by: Nicolas Hug --- sklearn/impute/_iterative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/impute/_iterative.py b/sklearn/impute/_iterative.py index 99661804e63aa..f5688fa96d238 100644 --- a/sklearn/impute/_iterative.py +++ b/sklearn/impute/_iterative.py @@ -68,7 +68,7 @@ class IterativeImputer(_BaseImputer): Maximum number of imputation rounds to perform before returning the imputations computed during the final round. A round is a single imputation of each feature with missing values. The stopping criterion - is met once `max(abs(X_t - X_{t-1}))/max(abs(X[known_vals]))` < tol, + is met once `max(abs(X_t - X_{t-1}))/max(abs(X[known_vals])) < tol`, where `X_t` is `X` at iteration `t`. Note that early stopping is only applied if ``sample_posterior=False``.