Skip to content

Commit

Permalink
Change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xukai92 committed Jun 4, 2017
1 parent 0efd793 commit 7815935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samplers/pgibbs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ sample(model::Function, alg::PG;
if resume_from != nothing # concat samples
unshift!(samples, resume_from.value2...)
pre_loge = resume_from.weight
# TODO: fix calculation of log-evidence
# Calculate new log-evidence
pre_n = length(resume_from.value2)
loge = exp((log(pre_loge) * pre_n + log(loge) * n) / (pre_n + n))
end
Expand Down

0 comments on commit 7815935

Please sign in to comment.