Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from sklearn.cluster import KmeansClustering
  2.  
  3. from cluster_template import ClusterTemplate
  4.  
  5. class KmeansCluster(ClusterTemplate):
  6.  
  7. def __init__(self, path):
  8. super(KmeansCluster, self).__init__(path)
  9.  
  10. # Implementation of abstract method
  11. def init_cluster_algo(self, num_clusters):
  12. self.clustering_algo = KmeansClustering(nclusters=num_clusters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement