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

Skip to content

Commit 3db677f

Browse files
ayanbagjmloyola
andauthored
DOC Ensures that compute_optics_graph passes numpydoc validation (#22205)
Co-authored-by: Juan Martin Loyola <[email protected]>
1 parent 0b9bb24 commit 3db677f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sklearn/cluster/_optics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ def compute_optics_graph(
405405
Parameters
406406
----------
407407
X : ndarray of shape (n_samples, n_features), or \
408-
(n_samples, n_samples) if metric=precomputed’.
408+
(n_samples, n_samples) if metric='precomputed'
409409
A feature array, or array of distances between samples if
410-
metric='precomputed'
410+
metric='precomputed'.
411411
412412
min_samples : int > 1 or float between 0 and 1
413413
The number of samples in a neighborhood for a point to be considered

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
numpydoc_validation = pytest.importorskip("numpydoc.validate")
1313

1414
FUNCTION_DOCSTRING_IGNORE_LIST = [
15-
"sklearn.cluster._optics.compute_optics_graph",
1615
"sklearn.cluster._spectral.spectral_clustering",
1716
"sklearn.covariance._graph_lasso.graphical_lasso",
1817
"sklearn.covariance._robust_covariance.fast_mcd",

0 commit comments

Comments
 (0)