plot_hp_performance | R Documentation |
Plot hyperparameter performance metrics
plot_hp_performance(dat, param_col, metric_col)
dat |
dataframe of hyperparameters and performance metric (e.g. from |
param_col |
hyperparameter to be plotted. must be a column in |
metric_col |
performance metric. must be a column in |
ggplot of hyperparameter performance.
Zena Lapp, zenalapp@umich.edu
Kelly Sovacool sovacool@umich.edu
# plot for a single `run_ml()` call
hp_metrics <- get_hp_performance(otu_mini_bin_results_glmnet$trained_model)
hp_metrics
plot_hp_performance(hp_metrics$dat, lambda, AUC)
## Not run:
# plot for multiple `run_ml()` calls
results <- lapply(seq(100, 102), function(seed) {
run_ml(otu_small, "glmnet", seed = seed)
})
models <- lapply(results, function(x) x$trained_model)
hp_metrics <- combine_hp_performance(models)
plot_hp_performance(hp_metrics$dat, lambda, AUC)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.