8000 DOC fix typo parameter name in example Isomap (#21011) · adrinjalali/scikit-learn@942b996 · GitHub
[go: up one dir, main page]

Skip to content

Commit 942b996

Browse files
jalexand3rJohnathan Alexander
authored andcommitted
DOC fix typo parameter name in example Isomap (scikit-learn#21011)
Co-authored-by: Johnathan Alexander <jalexander86@gatech.edu>
1 parent 768b7a2 commit 942b996

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/modules/neighbors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ using the caching properties of the scikit-learn pipeline:
567567
>>> from sklearn.pipeline import make_pipeline
568568
>>> estimator = make_pipeline(
569569
... KNeighborsTransformer(n_neighbors=5, mode='distance'),
570-
... Isomap(neighbors_algorithm='precomputed'),
570+
... Isomap(metric='precomputed'),
571571
... memory='/path/to/cache')
572572

573573
Second, precomputing the graph can give finer control on the nearest neighbors

sklearn/neighbors/_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class KNeighborsTransformer(KNeighborsMixin, TransformerMixin, NeighborsBase):
337337
>>> from sklearn.pipeline import make_pipeline
338338
>>> estimator = make_pipeline(
339339
... KNeighborsTransformer(n_neighbors=5, mode='distance'),
340-
... Isomap(neighbors_algorithm='precomputed'))
340+
... Isomap(metric='precomputed'))
341341
"""
342342

343343
def __init__(

0 commit comments

Comments
 (0)
0