-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexec-drake.R
executable file
·29 lines (20 loc) · 945 Bytes
/
exec-drake.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## make targets
r_make(r_args = list(show = TRUE))
# visualize
r_vis_drake_graph(group = "stage", clusters = c("data", "task", "learner",
"mlr_settings",
"prediction"),
targets_only = TRUE, show_output_files = FALSE)
# see outdated
r_outdated(r_args = list(show = TRUE))
# Misc
r_predict_runtime(r_args = list(show = TRUE))
r_predict_workers()
# Manually ----------------------------------------------------------------
make(plan, verbose = 2, targets = c("maps_debugging_diplodia_no_temp"),
cache_log_file = "log/cache_log.txt",
console_log_file = "log/drake.log",
lazy_load = "promise", caching = "worker",
memory_strategy = "memory",
template = list(log_file = "log/worker%a.log", n_cpus= 5, memory = 20000),
garbage_collection = TRUE, jobs = 2, parallelism = "clustermq")