wilmerags commited on
Commit
3bc7bbb
·
1 Parent(s): 629cfc4

fix: Balance min_cluster_size for less topics

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def generate_plot(
70
  embeddings = embed_text(df, model)
71
  # encoded_labels = encode_labels(labels)
72
  cluster = hdbscan.HDBSCAN(
73
- min_cluster_size=2,
74
  metric='euclidean',
75
  cluster_selection_method='eom'
76
  ).fit(embeddings)
 
70
  embeddings = embed_text(df, model)
71
  # encoded_labels = encode_labels(labels)
72
  cluster = hdbscan.HDBSCAN(
73
+ min_cluster_size=5,
74
  metric='euclidean',
75
  cluster_selection_method='eom'
76
  ).fit(embeddings)