View source: R/create_folder.R
create_folder | R Documentation |
Create the folder for checkingpointing, which
will "house" additional folders for the .stan
model, checkpointing information, and draws from the
posterior distribution.
create_folder(folder_name = "cp_folder", path = NULL)
folder_name |
Character string. Desired name for the "parent"
folder (defaults to |
path |
Character string, when specified. Defaults to |
No return value, and instead creates a directory with folders that will contain the checkpointing samples and other information.
This creates a directory with four folders:
cmd_fit: The cmdstanr fittted models (one for each checkpoint).
cp_info: Mass matrix, step size, and initial values for next checkpoint (last iteration from previous checkpoint).
cp_samples: Samples from the posterior distribution (post warmup)
stan_model: Complied Stan model
path <- create_folder(folder_name = "cp_folder") # remove folder unlink("cp_folder", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.