plot_multiclass_obs_pred: Visualizing predicted probability vs. true class for a...

Description Usage Arguments Value

View source: R/multi_class_diag_plots.R

Description

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

Usage

1
plot_multiclass_obs_pred(dat, y_name, 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.

prob_bins

The desired binwidth for histogram.

Value

A plotly::ggplotly() object.


shinymodels documentation built on Nov. 18, 2021, 1:12 a.m.