skl_clustering
SklClustering
Bases: Clustering
Cluster cycles based on a cycle property using a clustering algorithm from sklearn.cluster.
method = cluster.DBSCAN(eps=0.5, min_samples=1)
instance-attribute
__init__(cycles)
cluster(param)
Cluster using an sk-learn clustering algorithm.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
ndarray
|
dictionary with cluster labels as keys, and all cycles with said label as values. |
set_method(method)
set the method for clustering. Default: DBSCAN
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method |
ClusterMixin
|
the method for clustering. |
required |