Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx authored Jan 3, 2024
1 parent dd4fb70 commit 0285ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pints/_optimisers/_xnes.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ def _initialise(self):
d = self._n_parameters
n = self._population_size

# Learning rates, see Table 1
# Learning rates, see Table 1 in [1]
# TODO Allow changing before run() with method call
self._eta_mu = 1
# TODO Allow changing before run() with method call
self._eta_A = 0.6 * (3 + np.log(d)) * d ** -1.5

# Pre-calculated utilities, see Table 1
# Pre-calculated utilities, see Table 1 in [1]
self._us = np.maximum(0, np.log(n / 2 + 1) - np.log(1 + np.arange(n)))
self._us /= np.sum(self._us)
self._us -= 1 / n
Expand Down

0 comments on commit 0285ee5

Please sign in to comment.