![]() |
Provides service to change clustering result representation. More...
Public Member Functions | |
| def | __init__ (self, encoding, clusters, data) |
| Constructor of clustering result representor. More... | |
| def | get_encoding (self) |
| Returns current cluster representation. | |
| def | get_clusters (self) |
| Returns clusters representation. | |
| def | get_data (self) |
| Returns data that corresponds to clusters. | |
| def | set_encoding (self, encoding) |
| Change clusters encoding to specified type (index list, object list, labeling). More... | |
Provides service to change clustering result representation.
Example:
Definition at line 46 of file encoder.py.
| def pyclustering.cluster.encoder.cluster_encoder.__init__ | ( | self, | |
| encoding, | |||
| clusters, | |||
| data | |||
| ) |
Constructor of clustering result representor.
| [in] | encoding | (type_encoding): Type of clusters representation (index list, object list or labels). |
| [in] | clusters | (list): Current clusters representation. |
| [in] | data | (list): Data that corresponds to clusters. |
Definition at line 74 of file encoder.py.
| def pyclustering.cluster.encoder.cluster_encoder.set_encoding | ( | self, | |
| encoding | |||
| ) |
Change clusters encoding to specified type (index list, object list, labeling).
| [in] | encoding | (type_encoding): New type of clusters representation. |
Definition at line 114 of file encoder.py.