On this page
sklearn.cluster.cluster_optics_dbscan
- sklearn.cluster.cluster_optics_dbscan(*, reachability, core_distances, ordering, eps)[source]
-
Perform DBSCAN extraction for an arbitrary epsilon.
Extracting the clusters runs in linear time. Note that this results in
labels_which are close to aDBSCANwith similar settings andeps, only ifepsis close tomax_eps.- Parameters:
-
- reachabilityarray of shape (n_samples,)
-
Reachability distances calculated by OPTICS (
reachability_). - core_distancesarray of shape (n_samples,)
-
Distances at which points become core (
core_distances_). - orderingarray of shape (n_samples,)
-
OPTICS ordered point indices (
ordering_). - epsfloat
-
DBSCAN
epsparameter. Must be set to <max_eps. Results will be close to DBSCAN algorithm ifepsandmax_epsare close to one another.
- Returns:
-
- labels_array of shape (n_samples,)
-
The estimated labels.
Examples using sklearn.cluster.cluster_optics_dbscan
© 2007–2022 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.1/modules/generated/sklearn.cluster.cluster_optics_dbscan.html