You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my point of view, resuming a sampling process should no restrict the user to a particular sampler but rather to a class of samplers. If I understand the HMC code on this correctly, we currently discard the selected HMC algorithm if we resume a sampling.
Question 1: Would it be better to store only the type of the sampler or do we want to keep the sampler as a whole and instead adjust the code base so that we do not discard the user specified algorithm? Keeping the sampler would have the advantage that we can resume with exactly the same parameters.
Question 2: Is there a way that we can drop the VarInfo instance? Many fields can be recovered from the Chains type while others, e.g.
Currently, we have two different ways to resume a sampling process.
where the
resume
function is basically an alias for the second version.One drawback of the current approach is that we need to store the
model function
,sampler
and further information inside the Chains type.Turing.jl/src/utilities/io.jl
Lines 203 to 207 in 27b0933
From my point of view, resuming a sampling process should no restrict the user to a particular sampler but rather to a class of samplers. If I understand the HMC code on this correctly, we currently discard the selected HMC algorithm if we resume a sampling.
Turing.jl/src/samplers/hmc.jl
Lines 109 to 111 in 27b0933
Question 1: Would it be better to store only the type of the sampler or do we want to keep the sampler as a whole and instead adjust the code base so that we do not discard the user specified algorithm? Keeping the sampler would have the advantage that we can resume with exactly the same parameters.
Question 2: Is there a way that we can drop the VarInfo instance? Many fields can be recovered from the Chains type while others, e.g.
Turing.jl/src/core/varinfo.jl
Lines 51 to 53 in 414b3b0
cc: @yebai @xukai92
The text was updated successfully, but these errors were encountered: