Join GitHub today
Parameter object and adaptation #19
This commit is the start of making it easier to perform adaptation in SMC.
The main changes here are:
I changed the MCMC step a little so that the loop over the repeats is done within the library and users write code for a single MCMC step for a single particle. This seemed helpful for adapting the number of MCMC repeats (it is easier to work out the acceptance probability from previous steps if you know the number of repeats).
I think in a future pull request I’ll store more of the calculations for data annealing SMC. I’m essentially doubling up on the likelihood and prior calculations because I’m recalculating them for the current particle at every iteration.