From 0285ee5d669afdacbafae8e1bcfe8402c0beaaf5 Mon Sep 17 00:00:00 2001 From: Michael Clerx Date: Wed, 3 Jan 2024 15:16:57 +0000 Subject: [PATCH] Apply suggestions from code review --- pints/_optimisers/_xnes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pints/_optimisers/_xnes.py b/pints/_optimisers/_xnes.py index 31e80d0a5..2475d451e 100644 --- a/pints/_optimisers/_xnes.py +++ b/pints/_optimisers/_xnes.py @@ -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