diff --git a/examples/cluster/plot_optics.py b/examples/cluster/plot_optics.py index 5765f8089f3b2..523742d43f43d 100644 --- a/examples/cluster/plot_optics.py +++ b/examples/cluster/plot_optics.py @@ -8,6 +8,7 @@ Finds core samples of high density and expands clusters from them. This example uses data that is generated so that the clusters have different densities. + The :class:`~cluster.OPTICS` is first used with its Xi cluster detection method, and then setting specific thresholds on the reachability, which corresponds to :class:`~cluster.DBSCAN`. We can see that the different diff --git a/sklearn/cluster/_optics.py b/sklearn/cluster/_optics.py index 39d86be0c105a..c1665b28d0060 100755 --- a/sklearn/cluster/_optics.py +++ b/sklearn/cluster/_optics.py @@ -233,6 +233,9 @@ class OPTICS(ClusterMixin, BaseEstimator): >>> clustering = OPTICS(min_samples=2).fit(X) >>> clustering.labels_ array([0, 0, 0, 1, 1, 1]) + + For a more detailed example see + :ref:`sphx_glr_auto_examples_cluster_plot_optics.py`. """ _parameter_constraints: dict = {