plot_twoclass_obs_pred {shinymodels}R Documentation

Visualizing predicted probability vs. true class for a two-class classification model

Description

This function plots the predicted probabilities against the observed class based on tidymodels results for a two-class classification model.

Usage

plot_twoclass_obs_pred(dat, y_name, event_level = "first", prob_bins = 0.05)

Arguments

dat

The predictions data frame in the organize_data() result. Following variables are required: .outcome, .pred, .color, and .hover.

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 binwidth for histogram.

Value

A plotly::ggplotly() object.


[Package shinymodels version 0.1.1 Index]