Skip to content

Commit

Permalink
fix: xnes
Browse files Browse the repository at this point in the history
  • Loading branch information
BillHuang2001 committed Apr 14, 2024
1 parent 46d01ce commit 777b6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evox/algorithms/so/es_variants/nes.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(

def setup(self, key):
mean = self.init_mean
sigma = math.pow(jnp.prod(jnp.diag(self.init_covar)), 1 / self.dim)
sigma = jnp.pow(jnp.prod(jnp.diag(self.init_covar)), 1 / self.dim)
B = self.init_covar / sigma
population = jnp.empty((self.pop_size, self.dim))
noise = jnp.empty_like(population)
Expand Down

0 comments on commit 777b6ab

Please sign in to comment.