Prepare to continue sampling with manual scheduling
Source:R/sample-manual.R
monty_sample_manual_prepare_continue.Rd
Prepare to continue sampling from a model, with manual chain orchestration. This function is to monty_sample_continue what monty_sample_manual_prepare is to monty_sample. The original set of samples do not need to have been run manually.
Arguments
- samples
A
monty_samples
object created bymonty_sample()
- n_steps
The number of steps to run the sampler for.
- path
The path to write inputs and outputs to. This should be a path to a directory which does not yet exist, or which is empty; we will create one here. The contents of this directory are managed by
monty
and the names and contents of files here are an implementation detail and should not be relied on. Callingmonty_sample_manual_cleanup()
will delete the directory in its entirety. Be aware that if you usetempfile()
here (which can be a reasonable choice!) that this path will be deleted when your R process ends, so if using these the process callingmonty_sample_manual_prepare
should outlive running all sampling.- save_samples
Control over saving samples into the inputs. The choices here are
hash
(the default) where we save a hash and validate that in monty_sample_manual_collect,value
where the samples are themselves saved and you can omit thesamples
argument to monty_sample_manual_collect, ornothing
, in which we save nothing, and you just have to get it right.