Learn R Programming

lares (version 5.2.13)

mplot_cuts_error: Cuts by quantiles on absolute and percentual errors plot

Description

This function cuts by quantiles on absolute and percentual errors

Usage

mplot_cuts_error(
  tag,
  score,
  splits = 10,
  title = NA,
  model_name = NA,
  save = FALSE,
  subdir = NA,
  file_name = "viz_ncuts_error.png"
)

Value

Plot with error results by cuts.

Arguments

tag

Vector. Real known label.

score

Vector. Predicted value or model's result.

splits

Integer. Number of separations to plot

title

Character. Title to show in plot

model_name

Character. Model's name

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

See Also

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

Examples

Run this code
Sys.unsetenv("LARES_FONT") # Temporal
data(dfr) # Results for AutoML Predictions
head(dfr$regr)
mplot_cuts_error(dfr$regr$tag, dfr$regr$score,
  model_name = "Titanic Fare Model"
)

Run the code above in your browser using DataLab