graintrace.rare_criteria_selection_library#
Selector functions that pick rare cluster labels from per-cluster statistics.
- graintrace.rare_criteria_selection_library.select_smallest_cluster(df, nsmallest=10, min_size=1)[source]#
Return labels of the smallest clusters (by count
n) abovemin_size.
- graintrace.rare_criteria_selection_library.select_highest_von_mises_from_components(df, k=1, required_cols=None, min_size=1)[source]#
Return labels of the
kclusters with the highest von Mises stress from mean components.
- graintrace.rare_criteria_selection_library.select_highest_scalar(df, required_cols, k=1, min_size=1)[source]#
Return labels of the
kclusters with the highest value in the given scalar column.