sklearn.cluster.cluster_optics_dbscan?
sklearn.cluster.cluster_optics_dbscan(*, reachability, core_distances, ordering, eps)
對任意epsilon執行DBSCAN提取
聚類提取是在線性時間內進行的。請注意,只有當eps接近max_eps時,label_才會接近具有類似設置的eps的 DBSCAN。
| 參數 | 說明 |
|---|---|
| reachability | array, shape (n_samples,) 通過OPTICS計算的可達距離( reachability_) |
| core_distances | array, shape (n_samples,) 點成為核心的距離( core_distances_) |
| ordering | array, shape (n_samples,) OPTICS排序點的索引( ordering_) |
| eps | float DBSCAN 的 pes參數。必須設置為<max_eps。如果 eps和max_eps彼此接近,結果將接近DBSCAN算法。 |
| 返回值 | 說明書 |
|---|---|
| labels_ | array, shape (n_samples,) 估計的標簽。 |
