healthcareai (version 2.3.0)

plot.model_list: Plot performance of models

Description

Plot performance of models

Usage

# S3 method for model_list
plot(x, font_size = 11, point_size = 1,
  print = TRUE, ...)

Arguments

x

modellist object as returned by tune_models or machine_learn

font_size

Relative size of all fonts in plot, default = 11

point_size

Size of dots, default = 3

print

If TRUE (default) plot is printed

...

Unused

Value

Plot of model performance as a function of algorithm and hyperparameter values tuned over. Generally called for the side effect of printing a plot, but the plot is also invisibly returned. The best-performing model within each algorithm will be plotted as a triangle.

Examples

Run this code
# NOT RUN {
models <- machine_learn(mtcars, outcome = mpg, models = "glm")
plot(models)
# }

Run the code above in your browser using DataLab