Skip to content

Commit

Permalink
changes to indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielturek committed Dec 18, 2024
1 parent 4f0b429 commit 9ec8528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nimbleHMC/R/HMC_samplers.R
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ sampler_NUTS_classic <- nimbleFunction(
##for(i in 1:d) M[i] <<- 1 / warmupCovRegularized[i,i]
sqrtM <<- sqrt(M)
if(adaptEpsilon) {
inverseTransformStoreCalculate(qNew) #defensively ensure model states are up to date
inverseTransformStoreCalculate(qNew) ## defensively ensure model states are up to date
initEpsilon()
epsilonAdaptCount <<- 0
mu <<- log(10 * epsilon)
Expand Down Expand Up @@ -997,8 +997,8 @@ sampler_NUTS <- nimbleFunction(
if(adaptM) update <- adapt_M()
if(update & adaptEpsilon) {
if(initializeEpsilon) {
inverseTransformStoreCalculate(state_sample$q) # defensively ensure model states are up to date.
initEpsilon()
inverseTransformStoreCalculate(state_sample$q) ## defensively ensure model states are up to date.
initEpsilon()
}
Hbar <<- 0
logEpsilonBar <<- 0
Expand Down

0 comments on commit 9ec8528

Please sign in to comment.