INNER CODE UNIT · Python

append_clusters

annoviko/pyclustering · pyclustering/cluster/__init__.py:192

    def append_clusters(self, clusters, data=None, marker='.', markersize=None):
        """!
        @brief Appends list of cluster for visualization.

        @param[in] clusters (array_like): List of clusters where each cluster may consist of indexes of objects from the data or object itself.
        @param[in] data (array_like): If defines that each element of cluster is considered as a index of object from the data.
        @param[in] marker (string): Marker that is used for displaying objects from clusters on the canvas.
        @param[in] markersize (uint): Size of marker.

        """

        for cluster in clusters:
            self.append_cluster(cluster, data, marker, markersize)


    def save(self, filename, **kwargs):
        """!

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…