get_best_kxi: Get best k-Xi model
Description
Select k-Xi clustering model based on a metric and a rank
Usage
get_best_kxi(df_kxi, metric = "avg.silwidth", rank = 1)
Value
df_kxi row with specified metric and rank,
simplified to a list if only one rank selected
Arguments
- 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