Skip to content

Commit

Permalink
Ignore mypy for numpy sum axis (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrapin authored May 12, 2021
1 parent 2fb7d17 commit 3f21757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nevergrad/optimization/optimizerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ def _internal_tell_candidate(self, candidate: p.Parameter, loss: tp.FloatLoss) -
self.sigma = np.exp(
np.sum(
np.log([c._meta["sigma"] for c in self.parents]),
axis=0 if self.isotropic else None,
axis=0 if self.isotropic else None, # type: ignore
)
/ self.popsize.mu
)
Expand Down

0 comments on commit 3f21757

Please sign in to comment.