![]() |
pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Class represents clustering algorithm DBSCAN. More...
Public Member Functions | |
| def | __init__ (self, data, eps, neighbors, ccore=True, **kwargs) |
| Constructor of clustering algorithm DBSCAN. More... | |
| def | __getstate__ (self) |
| Returns current state of the algorithm. More... | |
| def | __setstate__ (self, state) |
| Set current state of the algorithm. More... | |
| def | process (self) |
| Performs cluster analysis in line with rules of DBSCAN algorithm. More... | |
| def | get_clusters (self) |
| Returns allocated clusters. More... | |
| def | get_noise (self) |
| Returns allocated noise. More... | |
| def | get_cluster_encoding (self) |
| Returns clustering result representation type that indicate how clusters are encoded. More... | |
Class represents clustering algorithm DBSCAN.
This DBSCAN algorithm is KD-tree optimized.
By default C/C++ pyclustering library is used for processing that significantly increases performance.
Clustering example where DBSCAN algorithm is used to process Chainlink data from FCPS collection:
| def pyclustering.cluster.dbscan.dbscan.__init__ | ( | self, | |
| data, | |||
| eps, | |||
| neighbors, | |||
ccore = True, |
|||
| ** | kwargs | ||
| ) |
Constructor of clustering algorithm DBSCAN.
| [in] | data | (list): Input data that is presented as list of points or distance matrix (defined by parameter 'data_type', by default data is considered as a list of points). |
| [in] | eps | (double): Connectivity radius between points, points may be connected if distance between them less then the radius. |
| [in] | neighbors | (uint): minimum number of shared neighbors that is required for establish links between points. |
| [in] | ccore | (bool): if True than DLL CCORE (C++ solution) will be used for solving the problem. |
| [in] | **kwargs | Arbitrary keyword arguments (available arguments: 'data_type'). |
Keyword Args:
| def pyclustering.cluster.dbscan.dbscan.__getstate__ | ( | self | ) |
| def pyclustering.cluster.dbscan.dbscan.__setstate__ | ( | self, | |
| state | |||
| ) |
| def pyclustering.cluster.dbscan.dbscan.get_cluster_encoding | ( | self | ) |
Returns clustering result representation type that indicate how clusters are encoded.
| def pyclustering.cluster.dbscan.dbscan.get_clusters | ( | self | ) |
Returns allocated clusters.
Definition at line 156 of file dbscan.py.
Referenced by pyclustering.samples.answer_reader.get_cluster_lengths(), and pyclustering.cluster.optics.optics.process().
| def pyclustering.cluster.dbscan.dbscan.get_noise | ( | self | ) |
Returns allocated noise.
| def pyclustering.cluster.dbscan.dbscan.process | ( | self | ) |
Performs cluster analysis in line with rules of DBSCAN algorithm.