tp_compile
compiles a TreePPL model to be used by tp_run.
Usage
tp_compile(
model_file_name = "tmp_model_file",
samples = 1000,
seed = NULL,
method = "smc-bpf",
align = FALSE,
cps = "none",
delay = NULL,
kernel = NULL,
mcmc_lw_gprob = NULL,
pmcmc_particles = NULL,
prune = FALSE,
subsample = NULL,
resample = NULL
)
Arguments
- model_file_name
a string giving a name to the temporary model file.
- samples
a base::integer giving the number of samples (MCMC) / particles (SMC).
- seed
a base::numeric to use as a random seed.
- method
a string giving the inference method name.
- align
a base::logical. Whether or not to align the model.
- cps
a string giving the configuration of CPS transformation.
- delay
a string giving the configuration of delayed sampling.
- kernel
a base::numeric value giving the driftScale for driftKernel in MCMC.
- mcmc_lw_gprob
a base::numeric probability of performing a global MCMC step.
- pmcmc_particles
a base::integer number of particles for the SMC proposal computation.
- prune
a base::logical. Whether or not to prune the model.
- subsample
a base::integer number of draws to subsample from the posterior distribution.
- resample
a string giving the selected resample placement method.