6-branching/iteration_targets.R

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)
  )
)
kenshuri/targets-tuto documentation built on April 19, 2021, 9:58 a.m.