ensemble_metrics {opticskxi} | R Documentation |
Use models' rankings over several metrics to select best model.
ensemble_metrics(
n_top = 0,
df_params,
metrics = NULL,
metrics_exclude = NULL,
n_models = 10
)
n_top |
Threshold of number of models to rank |
df_params |
Output of opticskxi_pipeline |
metrics |
Names of metrics to use. Any of those computed by opticskxi_pipeline, e.g. 'sindex', 'ch', 'dunn', 'dunn2', 'widestgap', 'entropy' etc. NULL for all (8). |
metrics_exclude |
Names of metrics to exclude. Typically used with metrics = NULL. E.g. 'entropy'. |
n_models |
Number of best models to return |
List of metrics matrix and df_params subsetted to best models