mplot_cuts: Cuts by quantiles for score plot

Description Usage Arguments Value See Also Examples

View source: R/model_plots.R

Description

This function cuts by quantiles any score or prediction.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mplot_cuts(
  score,
  splits = 10,
  model_name = NA,
  subtitle = NA,
  table = FALSE,
  save = FALSE,
  subdir = NA,
  file_name = "viz_ncuts.png"
)

Arguments

score

Vector. Predicted value or model's result.

splits

Integer. Numer of separations to plot

model_name

Character. Model's name

subtitle

Character. Subtitle to show in plot

table

Boolean. Do you wish to return a table with results?

save

Boolean. Save output plot into working directory

subdir

Character. Sub directory on which you wish to save the plot

file_name

Character. File name as you wish to save the plot

Value

Plot with performance results by cuts.

See Also

Other ML Visualization: mplot_conf(), mplot_cuts_error(), mplot_density(), mplot_full(), mplot_gain(), mplot_importance(), mplot_lineal(), mplot_metrics(), mplot_response(), mplot_roc(), mplot_splits(), mplot_topcats()

Examples

1
2
3
4
5
6
7
8
9
Sys.unsetenv("LARES_FONT") # Temporal
data(dfr) # Results for AutoML Predictions
head(dfr$class2)

# Data
mplot_cuts(dfr$class2$scores, splits = 5, table = TRUE)

# Plot
mplot_cuts(dfr$class2$scores, model_name = "Titanic Survived Model")

lares documentation built on June 9, 2021, 9:06 a.m.