Skip to content

Commit

Permalink
Make CI work again (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Jun 20, 2023
1 parent 0e50bac commit 1b787ae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ numpyro.egg-info
__pycache__/
.ipynb_checkpoints/
build
.DS_Store

# built / compiled
*.pyc
Expand Down
1 change: 0 additions & 1 deletion numpyro/contrib/nested_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ def prior_model() -> PriorModelGen:
num_live_points=model.U_ndims * 25,
num_parallel_samplers=1,
max_samples=1e4,
uncert_improvement_patience=2,
)
default_termination_kwargs = dict(live_evidence_frac=1e-4)
# Fill-in missing values with defaults. This allows user to inspect what was actually used by inspecting
Expand Down
2 changes: 1 addition & 1 deletion numpyro/infer/autoguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ def fn(x):
data=global_latents
):
global_outputs = self.global_guide.model(*args, **kwargs)
local_args = (global_ouputs,)
local_args = (global_outputs,)
local_kwargs = {}
else:
global_latents = {}
Expand Down
2 changes: 1 addition & 1 deletion test/contrib/test_nested_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def model():
"x", dist.MultivariateNormal(jnp.zeros(2), covariance_matrix=true_cov)
)

ns = NestedSampler(model)
ns = NestedSampler(model, constructor_kwargs={"num_live_points": 200})
ns.run(random.PRNGKey(0))

samples = ns.get_samples(random.PRNGKey(1), 1000)["x"]
Expand Down

0 comments on commit 1b787ae

Please sign in to comment.