Creates a heatmap showing the percentage of parameter combinations where each method performed best for each metric.
Arguments
- win_rates_df
Data frame with win rates from
run_param_sweep(). Must contain columns: Method, model_type, metric, win_rate. This is typically the data from the win_rates.csv file.- facet_by
Character. Variable to facet by. One of "model_type" or "metric". Default is "metric".
Examples
if (FALSE) { # \dontrun{
library(synergyMixR)
results <- run_param_sweep(test = TRUE, cores = 2)
# Read win rates
win_rates <- read.csv(results$win_rates_file)
# Plot win rate heatmap
p <- plot_winrate_heatmap(win_rates)
print(p)
} # }