ensemble_metrics {opticskxi}R Documentation

Compute ensemble metrics

Description

Use models' rankings over several metrics to select best model.

Usage

ensemble_metrics(
  n_top = 0,
  df_params,
  metrics = NULL,
  metrics_exclude = NULL,
  n_models = 10
)

Arguments

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

Value

List of metrics matrix and df_params subsetted to best models


[Package opticskxi version 1.1.0 Index]