Skip to content

Commit

Permalink
updated prior variance
Browse files Browse the repository at this point in the history
  • Loading branch information
kylajones committed Dec 15, 2023
1 parent 4bd6c58 commit 3ef8380
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion linfa/tests/test_discr_08_prior_TP1.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def log_prior(calib_inputs, transform):
phys_inputs = transform.forward(calib_inputs)
# Define prior moments
pr_avg = torch.tensor([[1e3, -21e3]])
pr_std = torch.tensor([[1e3*0.01, 21e3*0.01]])
pr_std = torch.tensor([[1e3*0.1, 21e3*0.1]])
# Eval log prior
l1 = -0.5 * calib_inputs.size(1) * np.log(2.0 * np.pi)
l2 = (-0.5 * torch.log(torch.prod(pr_std))).item()
Expand Down
2 changes: 1 addition & 1 deletion linfa/tests/test_discr_18_prior_TP15_rep_meas.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def log_prior(calib_inputs, transform):
phys_inputs = transform.forward(calib_inputs)
# Define prior moments
pr_avg = torch.tensor([[1e3, -21e3]])
pr_std = torch.tensor([[1e3*0.01, 21e3*0.01]])
pr_std = torch.tensor([[1e3*0.1, 21e3*0.1]])
# Eval log prior
l1 = -0.5 * calib_inputs.size(1) * np.log(2.0 * np.pi)
l2 = (-0.5 * torch.log(torch.prod(pr_std))).item()
Expand Down
6 changes: 3 additions & 3 deletions linfa/tests/test_plot_discr.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# discr_surface
python3 -m linfa.plot_disc --folder results/ \
--name test_09_lf_w_disc_TP1_prior \
--name test_08_lf_w_disc_TP1_prior \
--iter 25000 \
--mode histograms \
--num_points 10 \
--limfactor 1.0 \

python3 -m linfa.plot_disc --folder results/ \
--name test_09_lf_w_disc_TP1_prior \
--name test_08_lf_w_disc_TP1_prior \
--iter 25000 \
--mode discr_surface \
--num_points 40 \
--limfactor 1.0 \

python3 -m linfa.plot_res --folder results/ \
--name test_09_lf_w_disc_TP1_prior \
--name test_08_lf_w_disc_TP1_prior \
--iter 25000 \

0 comments on commit 3ef8380

Please sign in to comment.