Skip to content

Commit

Permalink
Update clustering.py
Browse files Browse the repository at this point in the history
Signed-off-by: Zishen Wang <[email protected]>
  • Loading branch information
zz11ss11zz authored Sep 21, 2024
1 parent 7e6074d commit 4856415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maml/sampling/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def transform(self, PCAfeatures):
f"BirchClustering with threshold_init={self.threshold_init} and n={self.n} "
f"gives {len(set(model.subcluster_labels_))} clusters.",
)
label_centers = dict(zip(model.subcluster_labels_, model.subcluster_centers_, strict=False))
label_centers = dict(zip(model.subcluster_labels_, model.subcluster_centers_))
return {
"labels": labels,
"label_centers": label_centers,
Expand Down

0 comments on commit 4856415

Please sign in to comment.