Learn R Programming

tidylearn (version 0.1.0)

tl_plot_gain: Plot gain chart for a classification model

Description

Plot gain chart for a classification model

Usage

tl_plot_gain(model, new_data = NULL, bins = 10, ...)

Value

A ggplot object with gain chart

Arguments

model

A tidylearn classification model object

new_data

Optional data frame for evaluation (if NULL, uses training data)

bins

Number of bins for grouping predictions (default: 10)

...

Additional arguments