Closed theogf closed 2 years ago
# data y = rand(Normal(0,1), 10) prior = Normal(0, 1) logprior(μ) = logpdf(prior, μ) loglikelihood(μ, data) = sum(logpdf.(Normal(μ, 1), data)) alg = ThermInt(n_samples=1000) logZ = alg(logprior, x -> loglikelihood(x, data), rand(prior))
Typically, this will not work cause mu is a scalar and not a vector
Typically, this will not work cause mu is a scalar and not a vector