File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -516,8 +516,8 @@ cdef np.ndarray[np.intp_t, ndim=1] do_labelling(
516516 result[n] = - 1
517517 elif cluster == root_cluster:
518518 if len (clusters) == 1 and allow_single_cluster and cluster in cluster_label_map:
519- # check if `cluster` still exists in `cluster_label_map` was not pruned by
520- # max_cluster_size or cluster_selection_epsilon_max before executing this
519+ # check if `cluster` still exists in `cluster_label_map` and that it was not pruned
520+ # by ` max_cluster_size` or ` cluster_selection_epsilon_max` before executing this
521521 if cluster_selection_epsilon != 0.0 :
522522 if tree[' lambda_val' ][tree[' child' ] == n] >= 1 / cluster_selection_epsilon:
523523 result[n] = cluster_label_map[cluster]
You can’t perform that action at this time.
0 commit comments