You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# cluster data# X = featuresclustering=DBSCAN(eps=3, min_samples=2).fit(X)
labels=clustering.labels_# as a classmethod=ClusteringSelection()
method.select(labels, num_select) # return selected indices# as a functionselect_from_clusters(num_select, labels, selection_algorithm=OptiSim(r, k))
# compute distance# arr is treated as a feature matrixselected=OptiSim(r, k).select(arr, num_select, func_distance='euclidean', labels=None)
# arr is treated as a distance matrix because func_distance is Noneselected=OptiSim(r, k).select(arr, num_select, func_distance=None, labels=None)
# arr is treated as a distance matrixselected=OptiSim(r, k, compute_distance=False).select(arr, num_select, labels=None)
selected=GridPartitioning(...).select(arr, num_select, labels=None)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beta Was this translation helpful? Give feedback.
All reactions