Skip to content

Commit

Permalink
added popsize kwarg in maximize_likelihood
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibeauWouters committed Nov 27, 2023
1 parent f8c7097 commit cd01eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jimgw/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def maximize_likelihood(
y = jax.jit(jax.vmap(y))

print("Starting the optimizer")
optimizer = EvolutionaryOptimizer(len(bounds), verbose=True)
optimizer = EvolutionaryOptimizer(len(bounds), popsize=set_nwalkers, verbose=True)
state = optimizer.optimize(y, bounds, n_loops=n_loops)
best_fit = optimizer.get_result()[0]
return prior.add_name(best_fit, transform_name=True, transform_value=True)

0 comments on commit cd01eda

Please sign in to comment.