pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
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... | |
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.
|
static |
Animates clustering process that is performed by EM algorithm.
[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. |
|
static |
Draws clusters and in case of two-dimensional dataset draws their ellipses.
[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()'. |