@@ -193,9 +193,7 @@ function CommonSolve.solve(prob::AbstractHybridProblem, solver::HybridPosteriorS
193193 n_site, n_batch = get_hybridproblem_n_site_and_batch (prob; scenario)
194194 hpints = HybridProblemInterpreters (prob; scenario)
195195 ϕq = get_hybridproblem_ϕq (prob; scenario)
196- (; ϕ, transPMs_batch, interpreters, get_transPMs, get_ca_int_PMs) = init_hybrid_params (
197- get_hybridproblem_θP (prob; scenario), pt. θM, cor_ends, ϕg0, hpints;
198- transP, transM, ϕunc0 = ϕq)
196+ (; ϕ, interpreters) = init_hybrid_params (ϕg0, ϕq)
199197 int_ϕq = interpreters. ϕq
200198 int_ϕg_ϕq = interpreters. ϕg_ϕq
201199 transMs = StackedArray (transM, n_batch)
@@ -233,7 +231,7 @@ function CommonSolve.solve(prob::AbstractHybridProblem, solver::HybridPosteriorS
233231
234232 priors_θP_mean, priors_θMs_mean = construct_priors_θ_mean (
235233 prob, ϕ0_dev. ϕg, keys (pt. θM), pt. θP, θmean_quant, g_dev, transM, transP;
236- scenario, get_ca_int_PMs, gdevs, pbm_covars)
234+ scenario, gdevs, pbm_covars)
237235
238236 loss_elbo = get_loss_elbo (
239237 g_dev, transP, transMs, f_dev, py;
@@ -349,8 +347,7 @@ function compute_elbo_components(
349347 g, ϕg0 = get_hybridproblem_MLapplicator (prob; scenario)
350348 ϕq = get_hybridproblem_ϕq (prob; scenario)
351349 (; transP, transM) = get_hybridproblem_transforms (prob; scenario)
352- (; ϕ, transPMs_batch, interpreters, get_transPMs, get_ca_int_PMs) = init_hybrid_params (
353- θP, θM, cor_ends, ϕg0, n_batch; transP, transM, ϕunc0 = ϕq)
350+ (; ϕ, interpreters) = init_hybrid_params (ϕg0, ϕq)
354351 if gdev isa MLDataDevices. AbstractGPUDevice
355352 ϕ0_dev = gdev (ϕ)
356353 g_dev = gdev (g) # zygote fails if gdev is a CPUDevice, although should be non-op
@@ -371,7 +368,7 @@ function compute_elbo_components(
371368 py = get_hybridproblem_neg_logden_obs (prob; scenario)
372369 priors_θ_mean = construct_priors_θ_mean (
373370 prob, ϕ0_dev. ϕg, keys (θM), θP, θmean_quant, g_dev, transM;
374- scenario, get_ca_int_PMs, gdev, cdev, pbm_covars)
371+ scenario, gdev, cdev, pbm_covars)
375372 neg_elbo_gtf_components (
376373 rng, ϕ0_dev, g_dev, transPMs_batch, f, py, xM, xP, y_o, y_unc, i_sites, interpreters;
377374 solver. n_MC, solver. n_MC_cap, cor_ends, priors_θ_mean)
@@ -382,7 +379,7 @@ In order to let mean of θ stay close to initial point parameter estimates
382379construct a prior on mean θ to a Normal around initial prediction.
383380"""
384381function construct_priors_θ_mean (prob, ϕg, keysθM, θP, θmean_quant, g_dev, transM, transP;
385- scenario:: Val{scen} , get_ca_int_PMs, gdevs, pbm_covars,
382+ scenario:: Val{scen} , gdevs, pbm_covars,
386383 ) where {scen}
387384 iszero (θmean_quant) ? ([],[]) :
388385 begin
0 commit comments