Skip to content

Commit

Permalink
Fix for #11
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes authored Feb 25, 2024
1 parent 458d2ad commit cd45c0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datamapplot/create_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ def create_interactive_plot(
)
for labels in reversed(label_layers):
label_map = {n: i for i, n in enumerate(np.unique(labels))}
if noise_label not in label_map:
label_map[noise_label] = -1
label_unmap = {i: n for n, i in label_map.items()}
cluster_label_vector = np.asarray(pd.Series(labels).map(label_map))
unique_non_noise_labels = [
Expand Down

0 comments on commit cd45c0d

Please sign in to comment.