Milad Alshomary commited on
Commit
016bb2f
·
1 Parent(s): ea3113e
Files changed (1) hide show
  1. utils/clustering_utils.py +1 -0
utils/clustering_utils.py CHANGED
@@ -74,6 +74,7 @@ def _find_best_dbscan_eps(X: np.ndarray,
74
  best_score = score
75
  best_labels = labels.copy()
76
  best_eps = eps
 
77
  except ValueError: # Catch errors from silhouette_score
78
  pass
79
  elif n_clusters_ == 1 and best_labels is None: # Fallback for single cluster
 
74
  best_score = score
75
  best_labels = labels.copy()
76
  best_eps = eps
77
+ print('EPS:', eps, 'SCORE:', score)
78
  except ValueError: # Catch errors from silhouette_score
79
  pass
80
  elif n_clusters_ == 1 and best_labels is None: # Fallback for single cluster