Skip to content

Commit

Permalink
Implement formatter suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
simsurace and github-actions[bot] authored Mar 10, 2024
1 parent 689acfb commit 82e2100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/likelihoods/gamma.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end

function _gamma_exp_loglikelihood_kernel(α, q_f, y)
return- 1) * log(y) - y * exp((var(q_f) / 2) - mean(q_f)) - α * mean(q_f) -
loggamma(α)
loggamma(α)
end

default_expectation_method(::GammaLikelihood{ExpLink}) = AnalyticExpectation()
2 changes: 1 addition & 1 deletion test/expectations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
if def isa GPLikelihoods.AnalyticExpectation
push!(methods, def)
end
y = [rand(rng, lik(0.)) for lik in liks]
y = [rand(rng, lik(0.0)) for lik in liks]

results = map(
m -> GPLikelihoods.expected_loglikelihood(m, liks, q_f, y), methods
Expand Down

0 comments on commit 82e2100

Please sign in to comment.