Nothing
fit_model <- function(model_specifics, train_set) {
# Extract arguments from model_specifics
model_formula <- model_specifics[["model_formula"]]
model_fn <- model_specifics[["model_fn"]]
hparams <- extract_hparams(model_specifics)
# Some model types don't accept string formulas
# so we convert it to an actual formula object
if (is.character(model_formula)) {
model_formula <- stats::as.formula(model_formula)
}
model_fn(
formula = model_formula,
train_data = train_set,
hyperparameters = hparams
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.