Class represents MBSAS (Modified Basic Sequential Algorithmic Scheme). More...
Public Member Functions | |
def | __init__ (self, data, maximum_clusters, threshold, ccore=True, kwargs) |
Creates MBSAS algorithm. More... | |
def | process (self) |
Performs cluster analysis in line with MBSAS algorithm. More... | |
Public Member Functions inherited from pyclustering.cluster.bsas.bsas | |
def | __init__ (self, data, maximum_clusters, threshold, ccore=True, kwargs) |
Creates classical BSAS algorithm. More... | |
def | process (self) |
Performs cluster analysis in line with rules of BSAS algorithm. More... | |
def | get_clusters (self) |
Returns list of allocated clusters, each cluster contains indexes of objects in list of data. More... | |
def | get_representatives (self) |
Returns list of representatives of allocated clusters. More... | |
def | get_cluster_encoding (self) |
Returns clustering result representation type that indicate how clusters are encoded. More... | |
Class represents MBSAS (Modified Basic Sequential Algorithmic Scheme).
Interface of MBSAS algorithm is the same as for BSAS. This algorithm performs clustering in two steps. The first - is determination of amount of clusters. The second - is assignment of points that were not marked as a cluster representatives to clusters.
Code example of MBSAS usage:
def pyclustering.cluster.mbsas.mbsas.__init__ | ( | self, | |
data, | |||
maximum_clusters, | |||
threshold, | |||
ccore = True , |
|||
kwargs | |||
) |
Creates MBSAS algorithm.
[in] | data | (list): Input data that is presented as list of points (objects), each point should be represented by list or tuple. |
[in] | maximum_clusters | Maximum allowable number of clusters that can be allocated during processing. |
[in] | threshold | Threshold of dissimilarity (maximum distance) between points. |
[in] | ccore | (bool): If True than DLL CCORE (C++ solution) will be used for solving. |
[in] | **kwargs | Arbitrary keyword arguments (available arguments: 'metric'). |
Keyword Args:
def pyclustering.cluster.mbsas.mbsas.process | ( | self | ) |
Performs cluster analysis in line with MBSAS algorithm.