Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0da1b7

Browse files
authored
DOC Add missing links to examples/impute (#27053)
1 parent dfe01c2 commit b0da1b7

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

doc/modules/impute.rst

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ string values or pandas categoricals when using the ``'most_frequent'`` or
8787
['a' 'y']
8888
['b' 'y']]
8989

90+
For another example on usage, see :ref:`sphx_glr_auto_examples_impute_plot_missing_values.py`.
91+
9092
.. _iterative_imputer:
9193

9294

@@ -220,6 +222,8 @@ neighbors of samples with missing values::
220222
[5.5, 6. , 5. ],
221223
[8. , 8. , 7. ]])
222224

225+
For another example on usage, see :ref:`sphx_glr_auto_examples_impute_plot_missing_values.py`.
226+
223227
.. topic:: References
224228

225229
.. [OL2001] Olga Troyanskaya, Michael Cantor, Gavin Sherlock, Pat Brown,

sklearn/impute/_base.py

+3
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ class SimpleImputer(_BaseImputer):
256256
[[ 7. 2. 3. ]
257257
[ 4. 3.5 6. ]
258258
[10. 3.5 9. ]]
259+
260+
For a more detailed example see
261+
:ref:`sphx_glr_auto_examples_impute_plot_missing_values.py`.
259262
"""
260263

261264
_parameter_constraints: dict = {

sklearn/impute/_iterative.py

+4
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ class IterativeImputer(_BaseImputer):
273273
array([[ 6.9584..., 2. , 3. ],
274274
[ 4. , 2.6000..., 6. ],
275275
[10. , 4.9999..., 9. ]])
276+
277+
For a more detailed example see
278+
:ref:`sphx_glr_auto_examples_impute_plot_missing_values.py` or
279+
:ref:`sphx_glr_auto_examples_impute_plot_iterative_imputer_variants_comparison.py`.
276280
"""
277281

278282
_parameter_constraints: dict = {

sklearn/impute/_knn.py

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ class KNNImputer(_BaseImputer):
121121
[3. , 4. , 3. ],
122122
[5.5, 6. , 5. ],
123123
[8. , 8. , 7. ]])
124+
125+
For a more detailed example see
126+
:ref:`sphx_glr_auto_examples_impute_plot_missing_values.py`.
124127
"""
125128

126129
_parameter_constraints: dict = {

0 commit comments

Comments
 (0)