Skip to content

Commit

Permalink
that should do it
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Dec 3, 2024
1 parent 22a436a commit ec9785f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/direct_mlj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ function MMI.fit(m::LaplaceModels, verbosity, X, y)
subnetwork_indices=m.subnetwork_indices,
hessian_structure=m.hessian_structure,
backend=m.backend,
σ=m.observational_noise,
μ₀=m.prior_mean,
P₀=m.prior_precision_matrix,
observational_noise=m.observational_noise,
prior_mean=m.prior_mean,
prior_precision_matrix=m.prior_precision_matrix,
)

if typeof(m) == LaplaceClassifier
Expand Down Expand Up @@ -300,9 +300,9 @@ function MMI.update(m::LaplaceModels, verbosity, old_fitresult, old_cache, X, y)
subnetwork_indices=m.subnetwork_indices,
hessian_structure=m.hessian_structure,
backend=m.backend,
σ=m.observational_noise,
μ₀=m.prior_mean,
P₀=m.prior_precision_matrix,
observational_noise=m.observational_noise,
prior_mean=m.prior_mean,
prior_precision_matrix=m.prior_precision_matrix,
)
if typeof(m) == LaplaceClassifier
la.likelihood = :classification
Expand Down Expand Up @@ -347,9 +347,9 @@ function MMI.update(m::LaplaceModels, verbosity, old_fitresult, old_cache, X, y)
subnetwork_indices=m.subnetwork_indices,
hessian_structure=m.hessian_structure,
backend=m.backend,
σ=m.observational_noise,
μ₀=m.prior_mean,
P₀=m.prior_precision_matrix,
observational_noise=m.observational_noise,
prior_mean=m.prior_mean,
prior_precision_matrix=m.prior_precision_matrix,
)
if typeof(m) == LaplaceClassifier
la.likelihood = :classification
Expand Down
2 changes: 1 addition & 1 deletion test/laplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function run_workflow(
la = Laplace(
nn;
likelihood=likelihood,
λ=λ,
prior_precision=λ,
subset_of_weights=subset_of_weights,
backend=backend,
subnetwork_indices=subnetwork_indices,
Expand Down

0 comments on commit ec9785f

Please sign in to comment.