Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ciguaran committed Oct 4, 2024
1 parent 26d271e commit b87d8e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion blackjax/smc/partial_posteriors_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def log_weights_fn(x):
key, state, num_mcmc_steps, mcmc_parameters, logposterior_fn, log_weights_fn
)

return PartialPosteriorsSMCState(state.particles, state.weights, data_mask), info
return (
PartialPosteriorsSMCState(state.particles, state.weights, data_mask),
info,
)

return step

Expand Down
7 changes: 6 additions & 1 deletion tests/smc/test_partial_posteriors_smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ def partial_logposterior(x):

data_masks = jnp.array(
[
jnp.concat([jnp.ones(datapoints_chosen), jnp.zeros(dataset_size - datapoints_chosen)])
jnp.concat(
[
jnp.ones(datapoints_chosen),
jnp.zeros(dataset_size - datapoints_chosen),
]
)
for datapoints_chosen in np.arange(100, 1001, 50)
]
)
Expand Down

0 comments on commit b87d8e4

Please sign in to comment.