| plot_metric | R Documentation |
S7 generic for SupervisedRes results, including
regression and classification. Uses recorded per-resample metrics in
resample_ids order; list names do not change that producer contract.
The default metric is balanced_accuracy for classification and rsq for
regression. Classification selects overall metrics, not per-class scores.
plot_metric(x, ...)
x |
rtemis::SupervisedRes: Resampled fitted model. |
... |
Method arguments, including |
All available training and test reports are selected by default. An explicitly requested unavailable report is an error. Missing metric values remain missing; a metric absent from every selected report is an error. No predictions or aggregate means are used to reconstruct fold values.
htmlwidget: Metric distributions with all observations by default.
model <- train(mtcars[, c("wt", "mpg")],
hyperparameters = setup_GLM(),
outer_resampling_config = setup_KFold(n_resamples = 3L),
execution_config = setup_SerialExecution(),
verbosity = 0L
)
plot_metric(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.