Skip to content

Commit

Permalink
fix deprecation warning (#1556)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
teytaud authored Sep 19, 2023
1 parent cb92b86 commit bb67982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nevergrad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
__all__ = ["optimizers", "families", "callbacks", "p", "typing", "errors", "ops"]


__version__ = "0.12.0"
__version__ = "0.13.0"
2 changes: 1 addition & 1 deletion nevergrad/optimization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _prune(self, archive: Archive[MultiValue]) -> Archive[MultiValue]:
names = ["optimistic", "pessimistic", "average"]
for name in names:
quantiles[name] = np.quantile( # type: ignore
[v.get_estimation(name) for v in archive.values()], threshold, interpolation="lower"
[v.get_estimation(name) for v in archive.values()], threshold, method="lower"
)
new_archive: Archive[MultiValue] = Archive()
new_archive.bytesdict = {
Expand Down

0 comments on commit bb67982

Please sign in to comment.