Spaces:
Runtime error
Runtime error
Update clustering.py
Browse files- clustering.py +1 -1
clustering.py
CHANGED
@@ -600,8 +600,8 @@ def create_3d_umap_plot(data):
|
|
600 |
|
601 |
def perform_clustering(data, min_eps, max_eps=0.95, n=5, threshold_values=None, embeddings_col="embeddings"):
|
602 |
|
|
|
603 |
if not threshold_values:
|
604 |
-
embeddings_matrix = np.array(data[embeddings_col].tolist())
|
605 |
# threshold_values = np.round(np.linspace(min_eps, max_eps, n), 2)
|
606 |
threshold_values = np.linspace(min_eps, max_eps, n)
|
607 |
|
|
|
600 |
|
601 |
def perform_clustering(data, min_eps, max_eps=0.95, n=5, threshold_values=None, embeddings_col="embeddings"):
|
602 |
|
603 |
+
embeddings_matrix = np.array(data[embeddings_col].tolist())
|
604 |
if not threshold_values:
|
|
|
605 |
# threshold_values = np.round(np.linspace(min_eps, max_eps, n), 2)
|
606 |
threshold_values = np.linspace(min_eps, max_eps, n)
|
607 |
|