-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
Description
From the NYR workshop, it would be helpful to:
-
document which model/engines use the sub-model trick during tune
-
give a function to list possible engines (see below)
-
note on
linear_reg()and others that more engines are available in other packages.
prototype:
show_engines <- function(x) {
if (!is.character(x) || length(x) > 1) {
rlang::abort("`show_engines()` takes a single character string as input.")
}
res <- try(get_from_env(x), silent = TRUE)
if (inherits(res, "try-error")) {
rlang::abort(
paste0("No results found for model function '", x, "'.")
)
}
res
}