Skip to content

Commit

Permalink
lowercase c bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JPDarby committed Aug 7, 2023
1 parent ba42024 commit f527977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bayesianlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ $$
\begin{aligned}
\mathrm{\mathcal{L}}
= &- \frac{1}{2} \sum_{i=1}^r \frac{[\mathbf{U}^T \mathbf{y}]_i^2}{\sigma_0^2 d_i^2 + \sigma_\epsilon^2}
- \frac{1}{2} \sum_{i=r+1}^N \frac{[\mathbf{U}^T \mathbf{y}]_i^2}{\sigma_\epsilon^2}
- \frac{1}{2} \sum_{i=r+1}^N \frac{[\mathbf{U}^T \mathbf{y}]_i^2}{\sigma_\epsilon^2}
\\
&- \frac{1}{2} \ln \prod_{i=1}^r (\sigma_0^2 d_i^2 + \sigma_\epsilon^2)
- \frac{N-r}{2} \ln (\sigma_\epsilon^2)
Expand Down Expand Up @@ -486,7 +486,7 @@ function bayesian_linear_regression_svd(X::Matrix{<:AbstractFloat},
UT_Y[1:length(S)] .*= var_0 .* S ./ (var_0 .* S .* S .+ var_e)
c = V * UT_Y[1:length(S)]

res = Dict{String, Any}("c" => c,
res = Dict{String, Any}("C" => c,
"lml" => lml,
"var_0" => var_0,
"var_e" => var_e)
Expand Down

0 comments on commit f527977

Please sign in to comment.