Skip to contents

Combine hyperparameter performance metrics for multiple train/test splits generated by, for instance, looping in R or using a snakemake workflow on a high-performance computer.

Usage

combine_hp_performance(trained_model_lst)

Arguments

trained_model_lst

List of trained models.

Value

Named list:

  • dat: Dataframe of performance metric for each group of hyperparameters

  • params: Hyperparameters tuned.

  • Metric: Performance metric used.

Author

Zena Lapp, zenalapp@umich.edu

Examples

if (FALSE) {
results <- lapply(seq(100, 102), function(seed) {
  run_ml(otu_small, "glmnet", seed = seed, cv_times = 2, kfold = 2)
})
models <- lapply(results, function(x) x$trained_model)
combine_hp_performance(models)
}