Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.cluster import KmeansClustering
- from cluster_template import ClusterTemplate
- class KmeansCluster(ClusterTemplate):
- def __init__(self, path):
- super(KmeansCluster, self).__init__(path)
- # Implementation of abstract method
- def init_cluster_algo(self, num_clusters):
- self.clustering_algo = KmeansClustering(nclusters=num_clusters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement