Skip to content

Commit

Permalink
Tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer committed Mar 1, 2024
1 parent 113866d commit 030c087
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/multisampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ struct Action
args::Tuple{Vararg{Any}}
end

function expcoldness(τ, k=0.001)
function expcoldness(τ, k=0.0005)
return exp(k*τ)
end

function Dexpcoldness(τ, k=0.001)
function Dexpcoldness(τ, k=0.0005)
return k*exp(k*τ)
end

Expand Down Expand Up @@ -57,8 +57,7 @@ function sampleaction(samplers, i, M, balance, prior, score, σ, ρ, κ)
λupdown = sup + sdown
λflip = max(prevsample.dir*(-sup + sdown), 0.0)
# TODO: does this make any sense?
λterm = Dexpcoldness(prevsample.τ) * expcoldness(prevsample.τ) * prevsample.scoreval # TODO: prior

λterm = exp(ULogarithmic, 0.0)*Dexpcoldness(prevsample.τ) * expcoldness(prevsample.τ) * prevsample.scoreval # TODO: prior
Δτdir = randexp()/*λdir)
Δτupdown = randexp()/*λupdown)
Δτflip = randexp()/*λflip)
Expand Down

0 comments on commit 030c087

Please sign in to comment.