| evaluate | R Documentation |
Cross-validated evaluation.
evaluate(
data,
formula,
model = NULL,
spec = NULL,
resampling = cv(5),
metrics = NULL,
type = NULL,
conf_level = 0.95,
seed = NULL,
fit = NULL,
ncores = NULL,
...
)
data |
Data frame. |
formula |
Model formula. |
model |
Learner id (ignored if |
spec |
Hyperparameter list. |
resampling |
Resampling object from |
metrics |
Character vector of metric names. |
type |
Prediction type override. |
conf_level |
Confidence level for fold-based summary intervals. |
seed |
Optional seed. |
fit |
Optional preconfigured |
ncores |
Optional number of CPU cores used to evaluate resampling folds.
|
... |
Passed to |
A funcml_eval object.
eval_obj <- evaluate(
data = mtcars,
formula = mpg ~ wt + hp,
model = "glm",
resampling = cv(3, seed = 1),
metrics = c("rmse", "mae")
)
eval_obj$summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.