get_best_kxi {opticskxi} | R Documentation |
Select k-Xi clustering model based on a metric and a rank
get_best_kxi(df_kxi, metric = "avg.silwidth", rank = 1)
df_kxi |
Data frame returned by opticsxi_pipeline |
metric |
Metric to choose best model |
rank |
Rank(s) of model to choose, ordered by decreasing metric |
df_kxi row with specified metric and rank, simplified to a list if only one rank selected