Skip to content

Commit

Permalink
Update _catcma.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ha-mano committed Aug 13, 2024
1 parent 7513df8 commit fdc7461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmaes/_catcma.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(
# (CMA uses negative weights while CatCMA uses positive weights.)
weights_prime = np.array(
[
math.log((population_size + 1) / 2) - math.log(i + 1) if i <= mu else 0
math.log((population_size + 1) / 2) - math.log(i + 1) if i < mu else 0
for i in range(population_size)
]
)
Expand Down

0 comments on commit fdc7461

Please sign in to comment.