View source: R/visualization.R
tof_plot_model_multinomial | R Documentation |
Plot the results of a multiclass glmnet model fit on sample-level data.
tof_plot_model_multinomial(tof_model, new_data, theme = ggplot2::theme_bw())
tof_model |
A 'tof_model' trained using |
new_data |
A tibble of new observations for which a plot should be made. If new_data isn't provided, the plot will be made using the training data used to fit the model. Alternatively, the string "tuning_data" can be provided, and the plot will be generated using the predictions generated during model tuning. |
theme |
A ggplot2 theme to apply to the plot.
Defaults to |
A ggplot object. Specifically, a one-versus-all ROC curve (one for each class).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.