pyclustering.cluster.ema.ema_visualizer Class Reference

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

Static Public Member Functions

def show_clusters (clusters, sample, covariances, means, figure=None, display=True)
 Draws clusters and in case of two-dimensional dataset draws their ellipses. More...
 
def animate_cluster_allocation (data, observer, animation_velocity=75, movie_fps=1, save_movie=None)
 Animates clustering process that is performed by EM algorithm. More...
 

Detailed Description

Visualizer of EM algorithm's results.

Provides services for visualization of particular features of the algorithm, for example, in case of two-dimensional dataset it shows covariance ellipses.

Definition at line 339 of file ema.py.

Member Function Documentation

◆ animate_cluster_allocation()

def pyclustering.cluster.ema.ema_visualizer.animate_cluster_allocation (   data,
  observer,
  animation_velocity = 75,
  movie_fps = 1,
  save_movie = None 
)
static

Animates clustering process that is performed by EM algorithm.

Parameters
[in]data(list): Dataset that is used for clustering.
[in]observer(ema_observer): EM observer that was used for collection information about clustering process.
[in]animation_velocity(uint): Interval between frames in milliseconds (for run-time animation only).
[in]movie_fps(uint): Defines frames per second (for rendering movie only).
[in]save_movie(string): If it is specified then animation will be stored to file that is specified in this parameter.

Definition at line 383 of file ema.py.

◆ show_clusters()

def pyclustering.cluster.ema.ema_visualizer.show_clusters (   clusters,
  sample,
  covariances,
  means,
  figure = None,
  display = True 
)
static

Draws clusters and in case of two-dimensional dataset draws their ellipses.

Parameters
[in]clusters(list): Clusters that were allocated by the algorithm.
[in]sample(list): Dataset that were used for clustering.
[in]covariances(list): Covariances of the clusters.
[in]means(list): Means of the clusters.
[in]figure(figure): If 'None' then new is figure is creater, otherwise specified figure is used for visualization.
[in]display(bool): If 'True' then figure will be shown by the method, otherwise it should be shown manually using matplotlib function 'plt.show()'.
Returns
(figure) Figure where clusters were drawn.

Definition at line 348 of file ema.py.


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