View source: R/two_class_diag_plots.R
plot_twoclass_obs_pred | R Documentation |
This function plots the predicted probabilities against the observed class based on tidymodels results for a two-class classification model.
plot_twoclass_obs_pred(dat, y_name, event_level = "first", prob_bins = 0.05)
dat |
The predictions data frame in the |
y_name |
The y/response variable for the model. |
event_level |
A single character value for the level corresponding to the event. |
prob_bins |
The desired |
A plotly::ggplotly()
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.