Skip to content

Commit

Permalink
Reorder for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBrand1 committed Dec 20, 2024
1 parent d12d24c commit 1b3d397
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipeline/src/constructors/remake_latent_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ function remake_latent_model(inference_config::Dict,
latent_model_name = inference_config["latent_namemodels"].first

if latent_model_name == "diff_ar"
if igp == ExpGrowthRate
if igp == Renewal
ar = AR(damp_priors = [prior_dict["damp_param_prior"]],
std_prior = HalfNormal(0.005 / tscale),
std_prior = HalfNormal(0.05 / tscale),
init_priors = [prior_dict["transformed_process_init_prior"]])
diff_ar = DiffLatentModel(;
model = ar, init_priors = [prior_dict["transformed_process_init_prior"]])
return diff_ar
elseif igp == Renewal
elseif igp == ExpGrowthRate
ar = AR(damp_priors = [prior_dict["damp_param_prior"]],
std_prior = HalfNormal(0.05 / tscale),
std_prior = HalfNormal(0.005 / tscale),
init_priors = [prior_dict["transformed_process_init_prior"]])
diff_ar = DiffLatentModel(;
model = ar, init_priors = [prior_dict["transformed_process_init_prior"]])
Expand Down

0 comments on commit 1b3d397

Please sign in to comment.