inst/templates/R/constructor.R

new_{{model}} <- function(coefs, blueprint) {
  hardhat::new_model(coefs = coefs, blueprint = blueprint, class = "{{model}}")
}
tidymodels/hardhat documentation built on Sept. 26, 2024, 11:38 p.m.