pyclustering  0.10.1
pyclustring is a Python, C++ data mining library.
pyclustering.cluster.bsas.bsas_visualizer Class Reference

Visualizer of BSAS algorithm's results. More...

Static Public Member Functions

def show_clusters (sample, clusters, representatives, **kwargs)
 Display BSAS clustering results. More...
 

Detailed Description

Visualizer of BSAS algorithm's results.

BSAS visualizer provides visualization services that are specific for BSAS algorithm.

Definition at line 23 of file bsas.py.

Member Function Documentation

◆ show_clusters()

def pyclustering.cluster.bsas.bsas_visualizer.show_clusters (   sample,
  clusters,
  representatives,
**  kwargs 
)
static

Display BSAS clustering results.

Parameters
[in]sample(list): Dataset that was used for clustering.
[in]clusters(array_like): Clusters that were allocated by the algorithm.
[in]representatives(array_like): Allocated representatives correspond to clusters.
[in]**kwargsArbitrary keyword arguments (available arguments: 'figure', 'display', 'offset').

Keyword Args:

  • figure (figure): If 'None' then new is figure is created, otherwise specified figure is used for visualization.
  • display (bool): If 'True' then figure will be shown by the method, otherwise it should be shown manually using matplotlib function 'plt.show()'.
  • offset (uint): Specify axes index on the figure where results should be drawn (only if argument 'figure' is specified).
Returns
(figure) Figure where clusters were drawn.

Definition at line 31 of file bsas.py.


The documentation for this class was generated from the following file: