Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion colibri/blackjax_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def blackjax_fit(
log.info(f"Running fit with backend: {jax.default_backend()}")

# set the BlackJAX seed
rng_key = jax.random.PRNGKey(blackjax_settings["seed"])
rng_key = jax.random.PRNGKey(blackjax_settings["blackjax_seed"])
log.info(f"BlackJAX initialisation seed: {rng_key}")
n_dims = pdf_model.n_parameters
n_live = blackjax_settings["n_live"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Runcard
delete_fraction: 0.5
log_precision: -3
posterior_resampling_seed: 52
seed: 0
blackjax_seed: 0



Expand Down
4 changes: 2 additions & 2 deletions colibri/tests/test_blackjax_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def mock_sample(rng_key, n_samples):
integrability_penalty = lambda pdf: jnp.array([0.0])

blackjax_settings = {
"seed": 42,
"blackjax_seed": 42,
"n_live": 50,
"delete_fraction": 0.5,
"repeats": 2,
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_blackjax_fit_truncates_posterior_and_warns(caplog):
)

blackjax_settings = {
"seed": 0,
"blackjax_seed": 0,
"n_live": 4,
"delete_fraction": 0.5,
"repeats": 1,
Expand Down
Loading