Skip to content

Commit

Permalink
Fix the enables larger Datasets (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 authored Aug 4, 2023
1 parent e48472d commit 404fd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapids_singlecell/scanpy_gpu/_harmonpy_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def allocate_buffers(self):

def init_cluster(self):
# Start with cluster centroids
kmeans_obj = KMeans(n_clusters=self.K, init="k-means++").fit(self.Z_cos.T)
kmeans_obj = KMeans(n_clusters=self.K, init="k-means||").fit(self.Z_cos.T)
self.Y = kmeans_obj.cluster_centers_.T
# (1) Normalize
self.Y = self.Y / cp.linalg.norm(self.Y, ord=2, axis=0)
Expand Down

0 comments on commit 404fd70

Please sign in to comment.