Skip to content

Commit

Permalink
Fix MNLE test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Dec 4, 2023
1 parent 618a262 commit 83a8d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mnle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def sim_wrapper(theta):

# MNLE
trainer = MNLE(proposal)
estimator = trainer.append_simulations(theta, x).train(max_num_epochs=1)
estimator = trainer.append_simulations(theta, x).train()

potential_fn = MixedLikelihoodBasedPotential(estimator, proposal, x_o)

Expand Down Expand Up @@ -276,6 +276,7 @@ def sim_wrapper(theta):
potential_fn=conditioned_potential_fn,
theta_transform=prior_transform,
proposal=prior,
**mcmc_kwargs,
)
cond_samples = mcmc_posterior.sample((num_samples,), x=x_o)

Expand Down

0 comments on commit 83a8d8f

Please sign in to comment.