#' @export
tunable.recipe <- function(x, ...) {
if (length(x$steps) == 0) {
res <- no_param
} else {
res <- purrr::map(x$steps, tunable)
res <- vctrs::vec_rbind(!!!res)
if (nrow(res) > 0) {
res <- res[!is.na(res$name), ]
}
}
res
}
#' @export
tunable.step <- function(x, ...) {
no_param
}
no_param <-
tibble::tibble(
name = NA_character_,
call_info = list(),
source = NA_character_,
component = NA_character_,
component_id = NA_character_
)
#' @export
tunable.check <- function(x, ...) {
no_param
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.