library(targets)
source("6-branching/functions.R")
tar_option_set(
packages = c(
"corrr",
"keras",
"recipes",
"rsample",
"tidyverse",
"yardstick"
)
)
list(
tar_target(churn_file, "data/churn.csv", format = "file"),
tar_target(churn_data, split_data(churn_file)),
tar_target(churn_recipe, prepare_recipe(churn_data)),
tar_target(units, c(16, 32, 64)),
tar_target(activations, c("relu", "sigmoid", "softmax")),
tar_target(
run,
test_model(act1 = activations, units1 = units, churn_data, churn_recipe),
pattern = cross(activations, units)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.