Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsvdLaar committed Feb 1, 2022
1 parent c47eb0c commit 7e78b57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engines/julia/update_rules/nonlinear_conjugate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ function renderCVI(log_μ_bw::Function,
λ_0::Vector,
μ_fw::Message{F, V}) where {F<:FactorNode, V<:VariateType}

# Intialize natural parameters of forward message
# Natural parameters of forward message
η = naturalParams(μ_fw.dist)

# Initialize Fisher information matrix
# Fisher information matrix
A = λ -> logNormalizer(V, F, η=λ)
Fisher = λ -> ForwardDiff.hessian(A, λ)

Expand Down Expand Up @@ -257,10 +257,10 @@ function renderCVI(log_μ_bw::Function,
λ_0::Vector,
μ_fw::Message{F, V}) where {F<:Gaussian, V<:VariateType}

# Intialize natural parameters of forward message
# Natural parameters of forward message
η = naturalParams(μ_fw.dist)

# Intialize gradients/derivatives of Gaussian moments
# Gradients/derivatives of Gaussian moments
if V == Univariate
∇m = s -> ForwardDiff.derivative(log_μ_bw, s)
∇v = s -> 0.5*ForwardDiff.derivative(∇m, s)
Expand Down

0 comments on commit 7e78b57

Please sign in to comment.