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,) 估計的標簽。 |