Advertisement
Guest User

Failed Nix Nevergrad build

a guest
Mar 26th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.82 KB | None | 0 0
  1. ***********************************************************************************************
  2. BUILD LOG FROM /nix/store/a0pqrq0qa8w5l5g20fkdfdqwr0jwdz2b-python3.7-nevergrad-0.3.2.drv
  3. ***********************************************************************************************
  4.  
  5. Sourcing python-remove-tests-dir-hook
  6. Sourcing python-catch-conflicts-hook.sh
  7. Sourcing python-remove-bin-bytecode-hook.sh
  8. Sourcing setuptools-build-hook
  9. Using setuptoolsBuildPhase
  10. Using setuptoolsShellHook
  11. Sourcing pip-install-hook
  12. Using pipInstallPhase
  13. Sourcing python-imports-check-hook.sh
  14. Using pythonImportsCheckPhase
  15. Sourcing setuptools-check-hook
  16. @nix { "action": "setPhase", "phase": "unpackPhase" }
  17. unpacking sources
  18. unpacking source archive /nix/store/sxygn792kr7fihn68gslmg54qf5d5gpb-source
  19. source root is source
  20. setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/setup.py
  21. @nix { "action": "setPhase", "phase": "patchPhase" }
  22. patching sources
  23. @nix { "action": "setPhase", "phase": "configurePhase" }
  24. configuring
  25. no configure script, doing nothing
  26. @nix { "action": "setPhase", "phase": "buildPhase" }
  27. building
  28. Executing setuptoolsBuildPhase
  29. ['pytest>=4.3.0', 'pytest-cov>=2.6.1', 'mypy>=0.730', 'sphinx>=2.1.0', 'sphinx_rtd_theme>=0.4.3', 'recommonmark>=0.5.0', 'wheel>=0.33.6', 'setuptools>=28.8.0', 'numpy-stubs @ git+https://github.com/numpy/numpy-stubs@master']
  30. running bdist_wheel
  31. running build
  32. running build_py
  33. creating build
  34. creating build/lib
  35. creating build/lib/nevergrad
  36. copying nevergrad/__init__.py -> build/lib/nevergrad
  37. creating build/lib/nevergrad/parametrization
  38. copying nevergrad/parametrization/utils.py -> build/lib/nevergrad/parametrization
  39. copying nevergrad/parametrization/transforms.py -> build/lib/nevergrad/parametrization
  40. copying nevergrad/parametrization/test_utils.py -> build/lib/nevergrad/parametrization
  41. copying nevergrad/parametrization/test_transforms.py -> build/lib/nevergrad/parametrization
  42. copying nevergrad/parametrization/test_parameter.py -> build/lib/nevergrad/parametrization
  43. copying nevergrad/parametrization/test_instantiate.py -> build/lib/nevergrad/parametrization
  44. copying nevergrad/parametrization/test_discretization.py -> build/lib/nevergrad/parametrization
  45. copying nevergrad/parametrization/parameter.py -> build/lib/nevergrad/parametrization
  46. copying nevergrad/parametrization/instantiate.py -> build/lib/nevergrad/parametrization
  47. copying nevergrad/parametrization/helpers.py -> build/lib/nevergrad/parametrization
  48. copying nevergrad/parametrization/discretization.py -> build/lib/nevergrad/parametrization
  49. copying nevergrad/parametrization/data.py -> build/lib/nevergrad/parametrization
  50. copying nevergrad/parametrization/core.py -> build/lib/nevergrad/parametrization
  51. copying nevergrad/parametrization/container.py -> build/lib/nevergrad/parametrization
  52. copying nevergrad/parametrization/choice.py -> build/lib/nevergrad/parametrization
  53. copying nevergrad/parametrization/__init__.py -> build/lib/nevergrad/parametrization
  54. creating build/lib/nevergrad/optimization
  55. copying nevergrad/optimization/utils.py -> build/lib/nevergrad/optimization
  56. copying nevergrad/optimization/test_utils.py -> build/lib/nevergrad/optimization
  57. copying nevergrad/optimization/test_sequences.py -> build/lib/nevergrad/optimization
  58. copying nevergrad/optimization/test_recaster.py -> build/lib/nevergrad/optimization
  59. copying nevergrad/optimization/test_optimizerlib.py -> build/lib/nevergrad/optimization
  60. copying nevergrad/optimization/test_mutations.py -> build/lib/nevergrad/optimization
  61. copying nevergrad/optimization/test_callbacks.py -> build/lib/nevergrad/optimization
  62. copying nevergrad/optimization/test_base.py -> build/lib/nevergrad/optimization
  63. copying nevergrad/optimization/sequences.py -> build/lib/nevergrad/optimization
  64. copying nevergrad/optimization/rescaledoneshot.py -> build/lib/nevergrad/optimization
  65. copying nevergrad/optimization/requirements_check.py -> build/lib/nevergrad/optimization
  66. copying nevergrad/optimization/recastlib.py -> build/lib/nevergrad/optimization
  67. copying nevergrad/optimization/recaster.py -> build/lib/nevergrad/optimization
  68. copying nevergrad/optimization/optimizerlib.py -> build/lib/nevergrad/optimization
  69. copying nevergrad/optimization/oneshot.py -> build/lib/nevergrad/optimization
  70. copying nevergrad/optimization/mutations.py -> build/lib/nevergrad/optimization
  71. copying nevergrad/optimization/families.py -> build/lib/nevergrad/optimization
  72. copying nevergrad/optimization/es.py -> build/lib/nevergrad/optimization
  73. copying nevergrad/optimization/differentialevolution.py -> build/lib/nevergrad/optimization
  74. copying nevergrad/optimization/callbacks.py -> build/lib/nevergrad/optimization
  75. copying nevergrad/optimization/base.py -> build/lib/nevergrad/optimization
  76. copying nevergrad/optimization/__init__.py -> build/lib/nevergrad/optimization
  77. creating build/lib/nevergrad/instrumentation
  78. copying nevergrad/instrumentation/variables.py -> build/lib/nevergrad/instrumentation
  79. copying nevergrad/instrumentation/test_variables.py -> build/lib/nevergrad/instrumentation
  80. copying nevergrad/instrumentation/test_multivariables.py -> build/lib/nevergrad/instrumentation
  81. copying nevergrad/instrumentation/multivariables.py -> build/lib/nevergrad/instrumentation
  82. copying nevergrad/instrumentation/core.py -> build/lib/nevergrad/instrumentation
  83. copying nevergrad/instrumentation/__init__.py -> build/lib/nevergrad/instrumentation
  84. creating build/lib/nevergrad/functions
  85. copying nevergrad/functions/utils.py -> build/lib/nevergrad/functions
  86. copying nevergrad/functions/test_utils.py -> build/lib/nevergrad/functions
  87. copying nevergrad/functions/test_functionlib.py -> build/lib/nevergrad/functions
  88. copying nevergrad/functions/test_corefuncs.py -> build/lib/nevergrad/functions
  89. copying nevergrad/functions/test_base.py -> build/lib/nevergrad/functions
  90. copying nevergrad/functions/functionlib.py -> build/lib/nevergrad/functions
  91. copying nevergrad/functions/corefuncs.py -> build/lib/nevergrad/functions
  92. copying nevergrad/functions/base.py -> build/lib/nevergrad/functions
  93. copying nevergrad/functions/__init__.py -> build/lib/nevergrad/functions
  94. creating build/lib/nevergrad/common
  95. copying nevergrad/common/typetools.py -> build/lib/nevergrad/common
  96. copying nevergrad/common/tools.py -> build/lib/nevergrad/common
  97. copying nevergrad/common/testing.py -> build/lib/nevergrad/common
  98. copying nevergrad/common/test_tools.py -> build/lib/nevergrad/common
  99. copying nevergrad/common/test_testing.py -> build/lib/nevergrad/common
  100. copying nevergrad/common/test_decorators.py -> build/lib/nevergrad/common
  101. copying nevergrad/common/decorators.py -> build/lib/nevergrad/common
  102. copying nevergrad/common/__init__.py -> build/lib/nevergrad/common
  103. creating build/lib/nevergrad/benchmark
  104. copying nevergrad/benchmark/xpbase.py -> build/lib/nevergrad/benchmark
  105. copying nevergrad/benchmark/test_xpbase.py -> build/lib/nevergrad/benchmark
  106. copying nevergrad/benchmark/test_plotting.py -> build/lib/nevergrad/benchmark
  107. copying nevergrad/benchmark/test_experiments.py -> build/lib/nevergrad/benchmark
  108. copying nevergrad/benchmark/test_execution.py -> build/lib/nevergrad/benchmark
  109. copying nevergrad/benchmark/test_core.py -> build/lib/nevergrad/benchmark
  110. copying nevergrad/benchmark/plotting.py -> build/lib/nevergrad/benchmark
  111. copying nevergrad/benchmark/frozenexperiments.py -> build/lib/nevergrad/benchmark
  112. copying nevergrad/benchmark/exporttable.py -> build/lib/nevergrad/benchmark
  113. copying nevergrad/benchmark/experiments.py -> build/lib/nevergrad/benchmark
  114. copying nevergrad/benchmark/execution.py -> build/lib/nevergrad/benchmark
  115. copying nevergrad/benchmark/core.py -> build/lib/nevergrad/benchmark
  116. copying nevergrad/benchmark/__main__.py -> build/lib/nevergrad/benchmark
  117. copying nevergrad/benchmark/__init__.py -> build/lib/nevergrad/benchmark
  118. creating build/lib/nevergrad/functions/stsp
  119. copying nevergrad/functions/stsp/test_core.py -> build/lib/nevergrad/functions/stsp
  120. copying nevergrad/functions/stsp/core.py -> build/lib/nevergrad/functions/stsp
  121. copying nevergrad/functions/stsp/__init__.py -> build/lib/nevergrad/functions/stsp
  122. creating build/lib/nevergrad/functions/rl
  123. copying nevergrad/functions/rl/test_envs.py -> build/lib/nevergrad/functions/rl
  124. copying nevergrad/functions/rl/test_agents.py -> build/lib/nevergrad/functions/rl
  125. copying nevergrad/functions/rl/envs.py -> build/lib/nevergrad/functions/rl
  126. copying nevergrad/functions/rl/base.py -> build/lib/nevergrad/functions/rl
  127. copying nevergrad/functions/rl/agents.py -> build/lib/nevergrad/functions/rl
  128. copying nevergrad/functions/rl/__init__.py -> build/lib/nevergrad/functions/rl
  129. creating build/lib/nevergrad/functions/powersystems
  130. copying nevergrad/functions/powersystems/test_core.py -> build/lib/nevergrad/functions/powersystems
  131. copying nevergrad/functions/powersystems/core.py -> build/lib/nevergrad/functions/powersystems
  132. copying nevergrad/functions/powersystems/__init__.py -> build/lib/nevergrad/functions/powersystems
  133. creating build/lib/nevergrad/functions/photonics
  134. copying nevergrad/functions/photonics/test_core.py -> build/lib/nevergrad/functions/photonics
  135. copying nevergrad/functions/photonics/photonics.py -> build/lib/nevergrad/functions/photonics
  136. copying nevergrad/functions/photonics/core.py -> build/lib/nevergrad/functions/photonics
  137. copying nevergrad/functions/photonics/__init__.py -> build/lib/nevergrad/functions/photonics
  138. creating build/lib/nevergrad/functions/multiobjective
  139. copying nevergrad/functions/multiobjective/test_core.py -> build/lib/nevergrad/functions/multiobjective
  140. copying nevergrad/functions/multiobjective/pyhv.py -> build/lib/nevergrad/functions/multiobjective
  141. copying nevergrad/functions/multiobjective/core.py -> build/lib/nevergrad/functions/multiobjective
  142. copying nevergrad/functions/multiobjective/__init__.py -> build/lib/nevergrad/functions/multiobjective
  143. creating build/lib/nevergrad/functions/mlda
  144. copying nevergrad/functions/mlda/test_problems.py -> build/lib/nevergrad/functions/mlda
  145. copying nevergrad/functions/mlda/test_datasets.py -> build/lib/nevergrad/functions/mlda
  146. copying nevergrad/functions/mlda/problems.py -> build/lib/nevergrad/functions/mlda
  147. copying nevergrad/functions/mlda/datasets.py -> build/lib/nevergrad/functions/mlda
  148. copying nevergrad/functions/mlda/__init__.py -> build/lib/nevergrad/functions/mlda
  149. creating build/lib/nevergrad/functions/games
  150. copying nevergrad/functions/games/test_game.py -> build/lib/nevergrad/functions/games
  151. copying nevergrad/functions/games/game.py -> build/lib/nevergrad/functions/games
  152. copying nevergrad/functions/games/__init__.py -> build/lib/nevergrad/functions/games
  153. creating build/lib/nevergrad/functions/arcoating
  154. copying nevergrad/functions/arcoating/test_core.py -> build/lib/nevergrad/functions/arcoating
  155. copying nevergrad/functions/arcoating/core.py -> build/lib/nevergrad/functions/arcoating
  156. copying nevergrad/functions/arcoating/__init__.py -> build/lib/nevergrad/functions/arcoating
  157. copying nevergrad/py.typed -> build/lib/nevergrad
  158. installing to build/bdist.linux-x86_64/wheel
  159. running install
  160. running install_lib
  161. creating build/bdist.linux-x86_64
  162. creating build/bdist.linux-x86_64/wheel
  163. creating build/bdist.linux-x86_64/wheel/nevergrad
  164. copying build/lib/nevergrad/py.typed -> build/bdist.linux-x86_64/wheel/nevergrad
  165. creating build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  166. copying build/lib/nevergrad/benchmark/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  167. copying build/lib/nevergrad/benchmark/__main__.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  168. copying build/lib/nevergrad/benchmark/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  169. copying build/lib/nevergrad/benchmark/execution.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  170. copying build/lib/nevergrad/benchmark/experiments.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  171. copying build/lib/nevergrad/benchmark/exporttable.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  172. copying build/lib/nevergrad/benchmark/frozenexperiments.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  173. copying build/lib/nevergrad/benchmark/plotting.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  174. copying build/lib/nevergrad/benchmark/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  175. copying build/lib/nevergrad/benchmark/test_execution.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  176. copying build/lib/nevergrad/benchmark/test_experiments.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  177. copying build/lib/nevergrad/benchmark/test_plotting.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  178. copying build/lib/nevergrad/benchmark/test_xpbase.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  179. copying build/lib/nevergrad/benchmark/xpbase.py -> build/bdist.linux-x86_64/wheel/nevergrad/benchmark
  180. creating build/bdist.linux-x86_64/wheel/nevergrad/common
  181. copying build/lib/nevergrad/common/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  182. copying build/lib/nevergrad/common/decorators.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  183. copying build/lib/nevergrad/common/test_decorators.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  184. copying build/lib/nevergrad/common/test_testing.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  185. copying build/lib/nevergrad/common/test_tools.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  186. copying build/lib/nevergrad/common/testing.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  187. copying build/lib/nevergrad/common/tools.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  188. copying build/lib/nevergrad/common/typetools.py -> build/bdist.linux-x86_64/wheel/nevergrad/common
  189. creating build/bdist.linux-x86_64/wheel/nevergrad/functions
  190. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/arcoating
  191. copying build/lib/nevergrad/functions/arcoating/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/arcoating
  192. copying build/lib/nevergrad/functions/arcoating/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/arcoating
  193. copying build/lib/nevergrad/functions/arcoating/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/arcoating
  194. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/games
  195. copying build/lib/nevergrad/functions/games/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/games
  196. copying build/lib/nevergrad/functions/games/game.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/games
  197. copying build/lib/nevergrad/functions/games/test_game.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/games
  198. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  199. copying build/lib/nevergrad/functions/mlda/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  200. copying build/lib/nevergrad/functions/mlda/datasets.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  201. copying build/lib/nevergrad/functions/mlda/problems.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  202. copying build/lib/nevergrad/functions/mlda/test_datasets.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  203. copying build/lib/nevergrad/functions/mlda/test_problems.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/mlda
  204. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/multiobjective
  205. copying build/lib/nevergrad/functions/multiobjective/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/multiobjective
  206. copying build/lib/nevergrad/functions/multiobjective/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/multiobjective
  207. copying build/lib/nevergrad/functions/multiobjective/pyhv.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/multiobjective
  208. copying build/lib/nevergrad/functions/multiobjective/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/multiobjective
  209. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/photonics
  210. copying build/lib/nevergrad/functions/photonics/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/photonics
  211. copying build/lib/nevergrad/functions/photonics/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/photonics
  212. copying build/lib/nevergrad/functions/photonics/photonics.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/photonics
  213. copying build/lib/nevergrad/functions/photonics/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/photonics
  214. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/powersystems
  215. copying build/lib/nevergrad/functions/powersystems/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/powersystems
  216. copying build/lib/nevergrad/functions/powersystems/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/powersystems
  217. copying build/lib/nevergrad/functions/powersystems/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/powersystems
  218. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  219. copying build/lib/nevergrad/functions/rl/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  220. copying build/lib/nevergrad/functions/rl/agents.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  221. copying build/lib/nevergrad/functions/rl/base.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  222. copying build/lib/nevergrad/functions/rl/envs.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  223. copying build/lib/nevergrad/functions/rl/test_agents.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  224. copying build/lib/nevergrad/functions/rl/test_envs.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/rl
  225. creating build/bdist.linux-x86_64/wheel/nevergrad/functions/stsp
  226. copying build/lib/nevergrad/functions/stsp/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/stsp
  227. copying build/lib/nevergrad/functions/stsp/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/stsp
  228. copying build/lib/nevergrad/functions/stsp/test_core.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions/stsp
  229. copying build/lib/nevergrad/functions/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  230. copying build/lib/nevergrad/functions/base.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  231. copying build/lib/nevergrad/functions/corefuncs.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  232. copying build/lib/nevergrad/functions/functionlib.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  233. copying build/lib/nevergrad/functions/test_base.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  234. copying build/lib/nevergrad/functions/test_corefuncs.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  235. copying build/lib/nevergrad/functions/test_functionlib.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  236. copying build/lib/nevergrad/functions/test_utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  237. copying build/lib/nevergrad/functions/utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/functions
  238. creating build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  239. copying build/lib/nevergrad/instrumentation/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  240. copying build/lib/nevergrad/instrumentation/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  241. copying build/lib/nevergrad/instrumentation/multivariables.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  242. copying build/lib/nevergrad/instrumentation/test_multivariables.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  243. copying build/lib/nevergrad/instrumentation/test_variables.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  244. copying build/lib/nevergrad/instrumentation/variables.py -> build/bdist.linux-x86_64/wheel/nevergrad/instrumentation
  245. creating build/bdist.linux-x86_64/wheel/nevergrad/optimization
  246. copying build/lib/nevergrad/optimization/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  247. copying build/lib/nevergrad/optimization/base.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  248. copying build/lib/nevergrad/optimization/callbacks.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  249. copying build/lib/nevergrad/optimization/differentialevolution.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  250. copying build/lib/nevergrad/optimization/es.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  251. copying build/lib/nevergrad/optimization/families.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  252. copying build/lib/nevergrad/optimization/mutations.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  253. copying build/lib/nevergrad/optimization/oneshot.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  254. copying build/lib/nevergrad/optimization/optimizerlib.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  255. copying build/lib/nevergrad/optimization/recaster.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  256. copying build/lib/nevergrad/optimization/recastlib.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  257. copying build/lib/nevergrad/optimization/requirements_check.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  258. copying build/lib/nevergrad/optimization/rescaledoneshot.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  259. copying build/lib/nevergrad/optimization/sequences.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  260. copying build/lib/nevergrad/optimization/test_base.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  261. copying build/lib/nevergrad/optimization/test_callbacks.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  262. copying build/lib/nevergrad/optimization/test_mutations.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  263. copying build/lib/nevergrad/optimization/test_optimizerlib.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  264. copying build/lib/nevergrad/optimization/test_recaster.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  265. copying build/lib/nevergrad/optimization/test_sequences.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  266. copying build/lib/nevergrad/optimization/test_utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  267. copying build/lib/nevergrad/optimization/utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/optimization
  268. creating build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  269. copying build/lib/nevergrad/parametrization/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  270. copying build/lib/nevergrad/parametrization/choice.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  271. copying build/lib/nevergrad/parametrization/container.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  272. copying build/lib/nevergrad/parametrization/core.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  273. copying build/lib/nevergrad/parametrization/data.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  274. copying build/lib/nevergrad/parametrization/discretization.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  275. copying build/lib/nevergrad/parametrization/helpers.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  276. copying build/lib/nevergrad/parametrization/instantiate.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  277. copying build/lib/nevergrad/parametrization/parameter.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  278. copying build/lib/nevergrad/parametrization/test_discretization.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  279. copying build/lib/nevergrad/parametrization/test_instantiate.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  280. copying build/lib/nevergrad/parametrization/test_parameter.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  281. copying build/lib/nevergrad/parametrization/test_transforms.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  282. copying build/lib/nevergrad/parametrization/test_utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  283. copying build/lib/nevergrad/parametrization/transforms.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  284. copying build/lib/nevergrad/parametrization/utils.py -> build/bdist.linux-x86_64/wheel/nevergrad/parametrization
  285. copying build/lib/nevergrad/__init__.py -> build/bdist.linux-x86_64/wheel/nevergrad
  286. running install_egg_info
  287. running egg_info
  288. creating nevergrad.egg-info
  289. writing nevergrad.egg-info/PKG-INFO
  290. writing dependency_links to nevergrad.egg-info/dependency_links.txt
  291. writing requirements to nevergrad.egg-info/requires.txt
  292. writing top-level names to nevergrad.egg-info/top_level.txt
  293. writing manifest file 'nevergrad.egg-info/SOURCES.txt'
  294. reading manifest file 'nevergrad.egg-info/SOURCES.txt'
  295. reading manifest template 'MANIFEST.in'
  296. writing manifest file 'nevergrad.egg-info/SOURCES.txt'
  297. Copying nevergrad.egg-info to build/bdist.linux-x86_64/wheel/nevergrad-0.3.2-py3.7.egg-info
  298. running install_scripts
  299. adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
  300. creating build/bdist.linux-x86_64/wheel/nevergrad-0.3.2.dist-info/WHEEL
  301. creating 'dist/nevergrad-0.3.2-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
  302. adding 'nevergrad/__init__.py'
  303. adding 'nevergrad/py.typed'
  304. adding 'nevergrad/benchmark/__init__.py'
  305. adding 'nevergrad/benchmark/__main__.py'
  306. adding 'nevergrad/benchmark/core.py'
  307. adding 'nevergrad/benchmark/execution.py'
  308. adding 'nevergrad/benchmark/experiments.py'
  309. adding 'nevergrad/benchmark/exporttable.py'
  310. adding 'nevergrad/benchmark/frozenexperiments.py'
  311. adding 'nevergrad/benchmark/plotting.py'
  312. adding 'nevergrad/benchmark/test_core.py'
  313. adding 'nevergrad/benchmark/test_execution.py'
  314. adding 'nevergrad/benchmark/test_experiments.py'
  315. adding 'nevergrad/benchmark/test_plotting.py'
  316. adding 'nevergrad/benchmark/test_xpbase.py'
  317. adding 'nevergrad/benchmark/xpbase.py'
  318. adding 'nevergrad/common/__init__.py'
  319. adding 'nevergrad/common/decorators.py'
  320. adding 'nevergrad/common/test_decorators.py'
  321. adding 'nevergrad/common/test_testing.py'
  322. adding 'nevergrad/common/test_tools.py'
  323. adding 'nevergrad/common/testing.py'
  324. adding 'nevergrad/common/tools.py'
  325. adding 'nevergrad/common/typetools.py'
  326. adding 'nevergrad/functions/__init__.py'
  327. adding 'nevergrad/functions/base.py'
  328. adding 'nevergrad/functions/corefuncs.py'
  329. adding 'nevergrad/functions/functionlib.py'
  330. adding 'nevergrad/functions/test_base.py'
  331. adding 'nevergrad/functions/test_corefuncs.py'
  332. adding 'nevergrad/functions/test_functionlib.py'
  333. adding 'nevergrad/functions/test_utils.py'
  334. adding 'nevergrad/functions/utils.py'
  335. adding 'nevergrad/functions/arcoating/__init__.py'
  336. adding 'nevergrad/functions/arcoating/core.py'
  337. adding 'nevergrad/functions/arcoating/test_core.py'
  338. adding 'nevergrad/functions/games/__init__.py'
  339. adding 'nevergrad/functions/games/game.py'
  340. adding 'nevergrad/functions/games/test_game.py'
  341. adding 'nevergrad/functions/mlda/__init__.py'
  342. adding 'nevergrad/functions/mlda/datasets.py'
  343. adding 'nevergrad/functions/mlda/problems.py'
  344. adding 'nevergrad/functions/mlda/test_datasets.py'
  345. adding 'nevergrad/functions/mlda/test_problems.py'
  346. adding 'nevergrad/functions/multiobjective/__init__.py'
  347. adding 'nevergrad/functions/multiobjective/core.py'
  348. adding 'nevergrad/functions/multiobjective/pyhv.py'
  349. adding 'nevergrad/functions/multiobjective/test_core.py'
  350. adding 'nevergrad/functions/photonics/__init__.py'
  351. adding 'nevergrad/functions/photonics/core.py'
  352. adding 'nevergrad/functions/photonics/photonics.py'
  353. adding 'nevergrad/functions/photonics/test_core.py'
  354. adding 'nevergrad/functions/powersystems/__init__.py'
  355. adding 'nevergrad/functions/powersystems/core.py'
  356. adding 'nevergrad/functions/powersystems/test_core.py'
  357. adding 'nevergrad/functions/rl/__init__.py'
  358. adding 'nevergrad/functions/rl/agents.py'
  359. adding 'nevergrad/functions/rl/base.py'
  360. adding 'nevergrad/functions/rl/envs.py'
  361. adding 'nevergrad/functions/rl/test_agents.py'
  362. adding 'nevergrad/functions/rl/test_envs.py'
  363. adding 'nevergrad/functions/stsp/__init__.py'
  364. adding 'nevergrad/functions/stsp/core.py'
  365. adding 'nevergrad/functions/stsp/test_core.py'
  366. adding 'nevergrad/instrumentation/__init__.py'
  367. adding 'nevergrad/instrumentation/core.py'
  368. adding 'nevergrad/instrumentation/multivariables.py'
  369. adding 'nevergrad/instrumentation/test_multivariables.py'
  370. adding 'nevergrad/instrumentation/test_variables.py'
  371. adding 'nevergrad/instrumentation/variables.py'
  372. adding 'nevergrad/optimization/__init__.py'
  373. adding 'nevergrad/optimization/base.py'
  374. adding 'nevergrad/optimization/callbacks.py'
  375. adding 'nevergrad/optimization/differentialevolution.py'
  376. adding 'nevergrad/optimization/es.py'
  377. adding 'nevergrad/optimization/families.py'
  378. adding 'nevergrad/optimization/mutations.py'
  379. adding 'nevergrad/optimization/oneshot.py'
  380. adding 'nevergrad/optimization/optimizerlib.py'
  381. adding 'nevergrad/optimization/recaster.py'
  382. adding 'nevergrad/optimization/recastlib.py'
  383. adding 'nevergrad/optimization/requirements_check.py'
  384. adding 'nevergrad/optimization/rescaledoneshot.py'
  385. adding 'nevergrad/optimization/sequences.py'
  386. adding 'nevergrad/optimization/test_base.py'
  387. adding 'nevergrad/optimization/test_callbacks.py'
  388. adding 'nevergrad/optimization/test_mutations.py'
  389. adding 'nevergrad/optimization/test_optimizerlib.py'
  390. adding 'nevergrad/optimization/test_recaster.py'
  391. adding 'nevergrad/optimization/test_sequences.py'
  392. adding 'nevergrad/optimization/test_utils.py'
  393. adding 'nevergrad/optimization/utils.py'
  394. adding 'nevergrad/parametrization/__init__.py'
  395. adding 'nevergrad/parametrization/choice.py'
  396. adding 'nevergrad/parametrization/container.py'
  397. adding 'nevergrad/parametrization/core.py'
  398. adding 'nevergrad/parametrization/data.py'
  399. adding 'nevergrad/parametrization/discretization.py'
  400. adding 'nevergrad/parametrization/helpers.py'
  401. adding 'nevergrad/parametrization/instantiate.py'
  402. adding 'nevergrad/parametrization/parameter.py'
  403. adding 'nevergrad/parametrization/test_discretization.py'
  404. adding 'nevergrad/parametrization/test_instantiate.py'
  405. adding 'nevergrad/parametrization/test_parameter.py'
  406. adding 'nevergrad/parametrization/test_transforms.py'
  407. adding 'nevergrad/parametrization/test_utils.py'
  408. adding 'nevergrad/parametrization/transforms.py'
  409. adding 'nevergrad/parametrization/utils.py'
  410. adding 'nevergrad-0.3.2.dist-info/LICENSE'
  411. adding 'nevergrad-0.3.2.dist-info/METADATA'
  412. adding 'nevergrad-0.3.2.dist-info/WHEEL'
  413. adding 'nevergrad-0.3.2.dist-info/top_level.txt'
  414. adding 'nevergrad-0.3.2.dist-info/RECORD'
  415. removing build/bdist.linux-x86_64/wheel
  416. Finished executing setuptoolsBuildPhase
  417. @nix { "action": "setPhase", "phase": "installPhase" }
  418. installing
  419. Executing pipInstallPhase
  420. /build/source/dist /build/source
  421. Processing ./nevergrad-0.3.2-py3-none-any.whl
  422. Requirement already satisfied: pandas>=0.23.4 in /nix/store/34240933ra3w4xgn1j54hgdz0bs0l10c-python3.7-pandas-1.0.3/lib/python3.7/site-packages (from nevergrad==0.3.2) (1.0.3)
  423. Requirement already satisfied: bayesian-optimization>=1.0.1 in /nix/store/s8yajvs2yhx6mvkq1gl75v0cf7jai4rh-python3.7-bayesian-optimization-1.1.0/lib/python3.7/site-packages (from nevergrad==0.3.2) (1.1.0)
  424. Requirement already satisfied: numpy>=1.15.0 in /nix/store/v6rdicqjk67y15s7pskn0clm4wy87asb-python3.7-numpy-1.18.1/lib/python3.7/site-packages (from nevergrad==0.3.2) (1.18.1)
  425. Requirement already satisfied: typing-extensions>=3.6.6 in /nix/store/2dslvyrbi9zrgd2avxxknlvpcsf70h2r-python3.7-typing_extensions-3.7.4.1/lib/python3.7/site-packages (from nevergrad==0.3.2) (3.7.4.1)
  426. Requirement already satisfied: cma>=2.6.0 in /nix/store/qzdqrmq7q6mm3ql510cdzjr1qcc2jpsn-python3.7-cma-2.7.0/lib/python3.7/site-packages (from nevergrad==0.3.2) (2.7.0)
  427. Requirement already satisfied: python-dateutil>=2.6.1 in /nix/store/cipbq5jglx2cwgcf43rkppnc92i04p30-python3.7-python-dateutil-2.8.1/lib/python3.7/site-packages (from pandas>=0.23.4->nevergrad==0.3.2) (2.8.1)
  428. Requirement already satisfied: pytz>=2017.2 in /nix/store/d34s1brl7h9wgjkv2n9s81bzvjrp11ly-python3.7-pytz-2019.3/lib/python3.7/site-packages (from pandas>=0.23.4->nevergrad==0.3.2) (2019.3)
  429. Requirement already satisfied: scikit-learn>=0.18.0 in /nix/store/fa7xap5y1g9vzbxgb2glx5hl6xx75zjf-python3.7-scikit-learn-0.21.3/lib/python3.7/site-packages (from bayesian-optimization>=1.0.1->nevergrad==0.3.2) (0.21.3)
  430. Requirement already satisfied: scipy>=0.14.0 in /nix/store/fl2y7ax8apij16m96cpw4dmh47rgmbyq-python3.7-scipy-1.4.1/lib/python3.7/site-packages (from bayesian-optimization>=1.0.1->nevergrad==0.3.2) (1.4.1)
  431. Requirement already satisfied: six>=1.5 in /nix/store/l6sv4zakmyp687vy837ivw20kcm7pdpj-python3.7-six-1.14.0/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas>=0.23.4->nevergrad==0.3.2) (1.14.0)
  432. Requirement already satisfied: joblib>=0.11 in /nix/store/jzgvf7j1i5yglchlik80n6h3p1lhc7f6-python3.7-joblib-0.14.1/lib/python3.7/site-packages (from scikit-learn>=0.18.0->bayesian-optimization>=1.0.1->nevergrad==0.3.2) (0.14.1)
  433. Installing collected packages: nevergrad
  434. Successfully installed nevergrad-0.3.2
  435. /build/source
  436. Finished executing pipInstallPhase
  437. @nix { "action": "setPhase", "phase": "fixupPhase" }
  438. post-installation fixup
  439. shrinking RPATHs of ELF executables and libraries in /nix/store/6r36b9pygk20wadp72m6gnj3qlgkpz50-python3.7-nevergrad-0.3.2
  440. strip is /nix/store/nfs9wf6ipffr9g9ylzb4i9c1i607nxvq-binutils-2.31.1/bin/strip
  441. stripping (with command strip and flags -S) in /nix/store/6r36b9pygk20wadp72m6gnj3qlgkpz50-python3.7-nevergrad-0.3.2/lib
  442. patching script interpreter paths in /nix/store/6r36b9pygk20wadp72m6gnj3qlgkpz50-python3.7-nevergrad-0.3.2
  443. checking for references to /build/ in /nix/store/6r36b9pygk20wadp72m6gnj3qlgkpz50-python3.7-nevergrad-0.3.2...
  444. Executing pythonRemoveTestsDir
  445. Finished executing pythonRemoveTestsDir
  446. @nix { "action": "setPhase", "phase": "installCheckPhase" }
  447. running install tests
  448. ============================= test session starts ==============================
  449. platform linux -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
  450. rootdir: /build/source
  451. collecting ...
  452. collecting 13 items
  453. collected 1478 items
  454.  
  455. nevergrad/benchmark/test_core.py ............. [ 0%]
  456. nevergrad/benchmark/test_execution.py ..... [ 1%]
  457. nevergrad/benchmark/test_experiments.py ................................ [ 3%]
  458. ............... [ 4%]
  459. nevergrad/benchmark/test_plotting.py ........... [ 5%]
  460. nevergrad/benchmark/test_xpbase.py ........... [ 5%]
  461. nevergrad/common/test_decorators.py ... [ 6%]
  462. nevergrad/common/test_testing.py ......... [ 6%]
  463. nevergrad/common/test_tools.py .................. [ 7%]
  464. nevergrad/functions/test_base.py ......... [ 8%]
  465. nevergrad/functions/test_corefuncs.py .................................. [ 10%]
  466. ....................................... [ 13%]
  467. nevergrad/functions/test_functionlib.py ........................... [ 15%]
  468. nevergrad/functions/test_utils.py . [ 15%]
  469. nevergrad/functions/arcoating/test_core.py ... [ 15%]
  470. nevergrad/functions/games/test_game.py ..... [ 15%]
  471. nevergrad/functions/mlda/test_datasets.py .......... [ 16%]
  472. nevergrad/functions/mlda/test_problems.py ......... [ 17%]
  473. nevergrad/functions/multiobjective/test_core.py .. [ 17%]
  474. nevergrad/functions/photonics/test_core.py ............................. [ 19%]
  475. [ 19%]
  476. nevergrad/functions/powersystems/test_core.py . [ 19%]
  477. nevergrad/functions/rl/test_agents.py ..... [ 19%]
  478. nevergrad/functions/rl/test_envs.py ........ [ 20%]
  479. nevergrad/functions/stsp/test_core.py . [ 20%]
  480. nevergrad/instrumentation/test_multivariables.py .... [ 20%]
  481. nevergrad/instrumentation/test_variables.py ........................... [ 22%]
  482. nevergrad/optimization/test_base.py .................... [ 23%]
  483. nevergrad/optimization/test_callbacks.py . [ 23%]
  484. nevergrad/optimization/test_mutations.py .............. [ 24%]
  485. nevergrad/optimization/test_optimizerlib.py ............................ [ 26%]
  486. ........................................................................ [ 31%]
  487. ...............capi_return is NULL
  488. Call-back cb_calcfc_in__cobyla__user__routines failed.
  489. ......................................................... [ 36%]
  490. ........................................................................ [ 41%]
  491. ........................................................................ [ 46%]
  492. ........................................................................ [ 51%]
  493. ........................................................................ [ 55%]
  494. ........................................................................ [ 60%]
  495. .....................................capi_return is NULL
  496. Call-back cb_calcfc_in__cobyla__user__routines failed.
  497. .capi_return is NULL
  498. Call-back cb_calcfc_in__cobyla__user__routines failed.
  499. .................................. [ 65%]
  500. ..................FF..F...............F....F.F.F.F...................... [ 70%]
  501. ...capi_return is NULL
  502. Call-back cb_calcfc_in__cobyla__user__routines failed.
  503. .capi_return is NULL
  504. Call-back cb_calcfc_in__cobyla__user__routines failed.
  505. .................................................................... [ 75%]
  506. ......................................................................capi_return is NULL
  507. Call-back cb_calcfc_in__cobyla__user__routines failed.
  508. .. [ 80%]
  509. ..............................ss...................sssss...............s [ 85%]
  510. sssssssssssssssssssssss............... [ 87%]
  511. nevergrad/optimization/test_recaster.py ....... [ 88%]
  512. nevergrad/optimization/test_sequences.py .......... [ 88%]
  513. nevergrad/optimization/test_utils.py ............ [ 89%]
  514. nevergrad/parametrization/test_discretization.py .............. [ 90%]
  515. nevergrad/parametrization/test_instantiate.py .................... [ 91%]
  516. nevergrad/parametrization/test_parameter.py ............................ [ 93%]
  517. ..................................... [ 96%]
  518. nevergrad/parametrization/test_transforms.py .......................... [ 98%]
  519. nevergrad/parametrization/test_utils.py ............................ [100%]
  520.  
  521. =================================== FAILURES ===================================
  522. ______________________ test_optimizers_recommendation[BO] ______________________
  523.  
  524. name = 'BO'
  525. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  526.  
  527. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  528. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  529. # set up environment
  530. optimizer_cls = registry[name]
  531. if name in UNSEEDABLE:
  532. raise SkipTest("Not playing nicely with the tests (unseedable)")
  533. np.random.seed(None)
  534. if optimizer_cls.recast or "SplitOptimizer" in name:
  535. np.random.seed(12)
  536. random.seed(12) # may depend on non numpy generator
  537. # budget=6 by default, larger for special cases needing more
  538. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  539. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  540. budget = 80
  541. dimension = min(16, max(4, int(np.sqrt(budget))))
  542. # set up problem
  543. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  544. with warnings.catch_warnings():
  545. # tests do not need to be efficient
  546. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  547. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  548. optim.parametrization.random_state.seed(12)
  549. np.testing.assert_equal(optim.name, name)
  550. # the following context manager speeds up BO tests
  551. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  552. # Reducing the precision could help in this regard.
  553. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  554. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  555. candidate = optim.minimize(fitness)
  556. if name not in recomkeeper.recommendations.index:
  557. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  558. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  559. # BO slightly differs from a computer to another
  560. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  561. np.testing.assert_array_almost_equal(
  562. candidate.args[0],
  563. recomkeeper.recommendations.loc[name, :][:dimension],
  564. decimal=decimal,
  565. > err_msg="Something has changed, if this is normal, delete the following "
  566. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  567. )
  568. E AssertionError:
  569. E Arrays are not almost equal to 2 decimals
  570. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  571. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  572. E Mismatched elements: 4 / 4 (100%)
  573. E Max absolute difference: 5.2002641
  574. E Max relative difference: 1.09616691
  575. E x: array([-1.72, -0.07, -0.23, -0.02])
  576. E y: array([-1.12, -0.56, 2.35, 5.18])
  577.  
  578. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  579. _____________________ test_optimizers_recommendation[RBO] ______________________
  580.  
  581. name = 'RBO'
  582. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  583.  
  584. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  585. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  586. # set up environment
  587. optimizer_cls = registry[name]
  588. if name in UNSEEDABLE:
  589. raise SkipTest("Not playing nicely with the tests (unseedable)")
  590. np.random.seed(None)
  591. if optimizer_cls.recast or "SplitOptimizer" in name:
  592. np.random.seed(12)
  593. random.seed(12) # may depend on non numpy generator
  594. # budget=6 by default, larger for special cases needing more
  595. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  596. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  597. budget = 80
  598. dimension = min(16, max(4, int(np.sqrt(budget))))
  599. # set up problem
  600. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  601. with warnings.catch_warnings():
  602. # tests do not need to be efficient
  603. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  604. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  605. optim.parametrization.random_state.seed(12)
  606. np.testing.assert_equal(optim.name, name)
  607. # the following context manager speeds up BO tests
  608. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  609. # Reducing the precision could help in this regard.
  610. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  611. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  612. candidate = optim.minimize(fitness)
  613. if name not in recomkeeper.recommendations.index:
  614. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  615. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  616. # BO slightly differs from a computer to another
  617. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  618. np.testing.assert_array_almost_equal(
  619. candidate.args[0],
  620. recomkeeper.recommendations.loc[name, :][:dimension],
  621. decimal=decimal,
  622. > err_msg="Something has changed, if this is normal, delete the following "
  623. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  624. )
  625. E AssertionError:
  626. E Arrays are not almost equal to 2 decimals
  627. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  628. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  629. E Mismatched elements: 4 / 4 (100%)
  630. E Max absolute difference: 3.73695334
  631. E Max relative difference: 1.12527195
  632. E x: array([ 0.25, 0.54, 0.07, -0.42])
  633. E y: array([3.92, 1.27, 1.13, 3.32])
  634.  
  635. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  636. _____________________ test_optimizers_recommendation[LBO] ______________________
  637.  
  638. name = 'LBO'
  639. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  640.  
  641. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  642. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  643. # set up environment
  644. optimizer_cls = registry[name]
  645. if name in UNSEEDABLE:
  646. raise SkipTest("Not playing nicely with the tests (unseedable)")
  647. np.random.seed(None)
  648. if optimizer_cls.recast or "SplitOptimizer" in name:
  649. np.random.seed(12)
  650. random.seed(12) # may depend on non numpy generator
  651. # budget=6 by default, larger for special cases needing more
  652. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  653. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  654. budget = 80
  655. dimension = min(16, max(4, int(np.sqrt(budget))))
  656. # set up problem
  657. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  658. with warnings.catch_warnings():
  659. # tests do not need to be efficient
  660. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  661. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  662. optim.parametrization.random_state.seed(12)
  663. np.testing.assert_equal(optim.name, name)
  664. # the following context manager speeds up BO tests
  665. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  666. # Reducing the precision could help in this regard.
  667. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  668. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  669. candidate = optim.minimize(fitness)
  670. if name not in recomkeeper.recommendations.index:
  671. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  672. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  673. # BO slightly differs from a computer to another
  674. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  675. np.testing.assert_array_almost_equal(
  676. candidate.args[0],
  677. recomkeeper.recommendations.loc[name, :][:dimension],
  678. decimal=decimal,
  679. > err_msg="Something has changed, if this is normal, delete the following "
  680. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  681. )
  682. E AssertionError:
  683. E Arrays are not almost equal to 2 decimals
  684. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  685. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  686. E Mismatched elements: 4 / 4 (100%)
  687. E Max absolute difference: 2.27519407
  688. E Max relative difference: 4.65793869
  689. E x: array([-0.46, 0.83, 0.32, -3.09])
  690. E y: array([-0.1 , -0.23, -1.63, -0.82])
  691.  
  692. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  693. _________________ test_optimizers_recommendation[chainBOwithR] _________________
  694.  
  695. name = 'chainBOwithR'
  696. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  697.  
  698. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  699. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  700. # set up environment
  701. optimizer_cls = registry[name]
  702. if name in UNSEEDABLE:
  703. raise SkipTest("Not playing nicely with the tests (unseedable)")
  704. np.random.seed(None)
  705. if optimizer_cls.recast or "SplitOptimizer" in name:
  706. np.random.seed(12)
  707. random.seed(12) # may depend on non numpy generator
  708. # budget=6 by default, larger for special cases needing more
  709. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  710. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  711. budget = 80
  712. dimension = min(16, max(4, int(np.sqrt(budget))))
  713. # set up problem
  714. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  715. with warnings.catch_warnings():
  716. # tests do not need to be efficient
  717. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  718. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  719. optim.parametrization.random_state.seed(12)
  720. np.testing.assert_equal(optim.name, name)
  721. # the following context manager speeds up BO tests
  722. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  723. # Reducing the precision could help in this regard.
  724. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  725. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  726. candidate = optim.minimize(fitness)
  727. if name not in recomkeeper.recommendations.index:
  728. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  729. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  730. # BO slightly differs from a computer to another
  731. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  732. np.testing.assert_array_almost_equal(
  733. candidate.args[0],
  734. recomkeeper.recommendations.loc[name, :][:dimension],
  735. decimal=decimal,
  736. > err_msg="Something has changed, if this is normal, delete the following "
  737. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  738. )
  739. E AssertionError:
  740. E Arrays are not almost equal to 5 decimals
  741. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  742. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  743. E Mismatched elements: 4 / 4 (100%)
  744. E Max absolute difference: 3.80132066
  745. E Max relative difference: 1.16114932
  746. E x: array([ 0.36418, 0.4068 , 0.14466, -0.52756])
  747. E y: array([4.03089, 1.26941, 1.15377, 3.27376])
  748.  
  749. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  750. ______________ test_optimizers_recommendation[chainBOwithLHSsqrt] ______________
  751.  
  752. name = 'chainBOwithLHSsqrt'
  753. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  754.  
  755. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  756. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  757. # set up environment
  758. optimizer_cls = registry[name]
  759. if name in UNSEEDABLE:
  760. raise SkipTest("Not playing nicely with the tests (unseedable)")
  761. np.random.seed(None)
  762. if optimizer_cls.recast or "SplitOptimizer" in name:
  763. np.random.seed(12)
  764. random.seed(12) # may depend on non numpy generator
  765. # budget=6 by default, larger for special cases needing more
  766. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  767. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  768. budget = 80
  769. dimension = min(16, max(4, int(np.sqrt(budget))))
  770. # set up problem
  771. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  772. with warnings.catch_warnings():
  773. # tests do not need to be efficient
  774. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  775. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  776. optim.parametrization.random_state.seed(12)
  777. np.testing.assert_equal(optim.name, name)
  778. # the following context manager speeds up BO tests
  779. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  780. # Reducing the precision could help in this regard.
  781. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  782. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  783. candidate = optim.minimize(fitness)
  784. if name not in recomkeeper.recommendations.index:
  785. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  786. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  787. # BO slightly differs from a computer to another
  788. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  789. np.testing.assert_array_almost_equal(
  790. candidate.args[0],
  791. recomkeeper.recommendations.loc[name, :][:dimension],
  792. decimal=decimal,
  793. > err_msg="Something has changed, if this is normal, delete the following "
  794. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  795. )
  796. E AssertionError:
  797. E Arrays are not almost equal to 5 decimals
  798. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  799. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  800. E Mismatched elements: 4 / 4 (100%)
  801. E Max absolute difference: 2.42782575
  802. E Max relative difference: 10.77830841
  803. E x: array([ 2.19037, 0.87498, -1.55962, 0.37103])
  804. E y: array([-0.224 , -0.32305, 0.86821, 0.5878 ])
  805.  
  806. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  807. ________________ test_optimizers_recommendation[chainBOwithLHS] ________________
  808.  
  809. name = 'chainBOwithLHS'
  810. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  811.  
  812. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  813. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  814. # set up environment
  815. optimizer_cls = registry[name]
  816. if name in UNSEEDABLE:
  817. raise SkipTest("Not playing nicely with the tests (unseedable)")
  818. np.random.seed(None)
  819. if optimizer_cls.recast or "SplitOptimizer" in name:
  820. np.random.seed(12)
  821. random.seed(12) # may depend on non numpy generator
  822. # budget=6 by default, larger for special cases needing more
  823. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  824. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  825. budget = 80
  826. dimension = min(16, max(4, int(np.sqrt(budget))))
  827. # set up problem
  828. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  829. with warnings.catch_warnings():
  830. # tests do not need to be efficient
  831. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  832. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  833. optim.parametrization.random_state.seed(12)
  834. np.testing.assert_equal(optim.name, name)
  835. # the following context manager speeds up BO tests
  836. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  837. # Reducing the precision could help in this regard.
  838. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  839. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  840. candidate = optim.minimize(fitness)
  841. if name not in recomkeeper.recommendations.index:
  842. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  843. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  844. # BO slightly differs from a computer to another
  845. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  846. np.testing.assert_array_almost_equal(
  847. candidate.args[0],
  848. recomkeeper.recommendations.loc[name, :][:dimension],
  849. decimal=decimal,
  850. > err_msg="Something has changed, if this is normal, delete the following "
  851. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  852. )
  853. E AssertionError:
  854. E Arrays are not almost equal to 5 decimals
  855. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  856. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  857. E Mismatched elements: 4 / 4 (100%)
  858. E Max absolute difference: 0.06244087
  859. E Max relative difference: 0.24462797
  860. E x: array([-0.11467, 0.16282, -0.44595, 0.79784])
  861. E y: array([-0.15181, 0.14412, -0.38351, 0.81411])
  862.  
  863. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  864. ________ test_optimizers_recommendation[chainBOwithMetaRecenteringsqrt] ________
  865.  
  866. name = 'chainBOwithMetaRecenteringsqrt'
  867. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  868.  
  869. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  870. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  871. # set up environment
  872. optimizer_cls = registry[name]
  873. if name in UNSEEDABLE:
  874. raise SkipTest("Not playing nicely with the tests (unseedable)")
  875. np.random.seed(None)
  876. if optimizer_cls.recast or "SplitOptimizer" in name:
  877. np.random.seed(12)
  878. random.seed(12) # may depend on non numpy generator
  879. # budget=6 by default, larger for special cases needing more
  880. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  881. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  882. budget = 80
  883. dimension = min(16, max(4, int(np.sqrt(budget))))
  884. # set up problem
  885. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  886. with warnings.catch_warnings():
  887. # tests do not need to be efficient
  888. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  889. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  890. optim.parametrization.random_state.seed(12)
  891. np.testing.assert_equal(optim.name, name)
  892. # the following context manager speeds up BO tests
  893. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  894. # Reducing the precision could help in this regard.
  895. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  896. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  897. candidate = optim.minimize(fitness)
  898. if name not in recomkeeper.recommendations.index:
  899. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  900. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  901. # BO slightly differs from a computer to another
  902. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  903. np.testing.assert_array_almost_equal(
  904. candidate.args[0],
  905. recomkeeper.recommendations.loc[name, :][:dimension],
  906. decimal=decimal,
  907. > err_msg="Something has changed, if this is normal, delete the following "
  908. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  909. )
  910. E AssertionError:
  911. E Arrays are not almost equal to 5 decimals
  912. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  913. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  914. E Mismatched elements: 4 / 4 (100%)
  915. E Max absolute difference: 0.00308294
  916. E Max relative difference: 0.13945968
  917. E x: array([-0.04807, 0.01902, -0.07441, 0.24489])
  918. E y: array([-0.04579, 0.02211, -0.07227, 0.24333])
  919.  
  920. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  921. __________ test_optimizers_recommendation[chainBOwithMetaRecentering] __________
  922.  
  923. name = 'chainBOwithMetaRecentering'
  924. recomkeeper = <nevergrad.optimization.test_optimizerlib.RecommendationKeeper object at 0x7fffd093dd50>
  925.  
  926. @pytest.mark.parametrize("name", [name for name in registry]) # type: ignore
  927. def test_optimizers_recommendation(name: str, recomkeeper: RecommendationKeeper) -> None:
  928. # set up environment
  929. optimizer_cls = registry[name]
  930. if name in UNSEEDABLE:
  931. raise SkipTest("Not playing nicely with the tests (unseedable)")
  932. np.random.seed(None)
  933. if optimizer_cls.recast or "SplitOptimizer" in name:
  934. np.random.seed(12)
  935. random.seed(12) # may depend on non numpy generator
  936. # budget=6 by default, larger for special cases needing more
  937. budget = {"WidePSO": 100, "PSO": 100, "MEDA": 100, "EDA": 100, "MPCEDA": 100, "TBPSA": 100}.get(name, 6)
  938. if isinstance(optimizer_cls, (optlib.DifferentialEvolution, optlib.EvolutionStrategy)):
  939. budget = 80
  940. dimension = min(16, max(4, int(np.sqrt(budget))))
  941. # set up problem
  942. fitness = Fitness([0.5, -0.8, 0, 4] + (5 * np.cos(np.arange(dimension - 4))).tolist())
  943. with warnings.catch_warnings():
  944. # tests do not need to be efficient
  945. warnings.filterwarnings("ignore", category=base.InefficientSettingsWarning)
  946. optim = optimizer_cls(parametrization=dimension, budget=budget, num_workers=1)
  947. optim.parametrization.random_state.seed(12)
  948. np.testing.assert_equal(optim.name, name)
  949. # the following context manager speeds up BO tests
  950. # BEWARE: BO tests are deterministic but can get different results from a computer to another.
  951. # Reducing the precision could help in this regard.
  952. patched = partial(acq_max, n_warmup=10000, n_iter=2)
  953. with patch("bayes_opt.bayesian_optimization.acq_max", patched):
  954. candidate = optim.minimize(fitness)
  955. if name not in recomkeeper.recommendations.index:
  956. recomkeeper.recommendations.loc[name, :dimension] = tuple(candidate.args[0])
  957. raise ValueError(f'Recorded the value for optimizer "{name}", please rerun this test locally.')
  958. # BO slightly differs from a computer to another
  959. decimal = 2 if isinstance(optimizer_cls, optlib.ParametrizedBO) else 5
  960. np.testing.assert_array_almost_equal(
  961. candidate.args[0],
  962. recomkeeper.recommendations.loc[name, :][:dimension],
  963. decimal=decimal,
  964. > err_msg="Something has changed, if this is normal, delete the following "
  965. f"file and rerun to update the values:\n{recomkeeper.filepath}",
  966. )
  967. E AssertionError:
  968. E Arrays are not almost equal to 5 decimals
  969. E Something has changed, if this is normal, delete the following file and rerun to update the values:
  970. E /build/source/nevergrad/optimization/recorded_recommendations.csv
  971. E Mismatched elements: 4 / 4 (100%)
  972. E Max absolute difference: 0.18106251
  973. E Max relative difference: 1.
  974. E x: array([0. , 0. , 0.07768, 0.15178])
  975. E y: array([0.06514, 0.00632, 0.25874, 0.17846])
  976.  
  977. nevergrad/optimization/test_optimizerlib.py:215: AssertionError
  978. =============================== warnings summary ===============================
  979. /nix/store/qzdqrmq7q6mm3ql510cdzjr1qcc2jpsn-python3.7-cma-2.7.0/lib/python3.7/site-packages/cma/utilities/utils.py:8
  980. /nix/store/qzdqrmq7q6mm3ql510cdzjr1qcc2jpsn-python3.7-cma-2.7.0/lib/python3.7/site-packages/cma/utilities/utils.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
  981. from collections import MutableMapping # since Python 2.4?
  982.  
  983. /nix/store/w5ydhkm2z38x5kg2fcacdkl91cd2zsp4-python3.7-nose-1.3.7/lib/python3.7/site-packages/nose/importer.py:12
  984. /nix/store/w5ydhkm2z38x5kg2fcacdkl91cd2zsp4-python3.7-nose-1.3.7/lib/python3.7/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  985. from imp import find_module, load_module, acquire_lock, release_lock
  986.  
  987. nevergrad/instrumentation/variables.py:301
  988. nevergrad/instrumentation/test_variables.py::test_log[0-0.01]
  989. nevergrad/instrumentation/test_variables.py::test_log[10-0.1]
  990. nevergrad/instrumentation/test_variables.py::test_log[-10-0.001]
  991. nevergrad/instrumentation/test_variables.py::test_log[20-0.1]
  992. nevergrad/instrumentation/test_variables.py::test_log[9-0.07943]
  993. nevergrad/instrumentation/test_variables.py::test_log_int
  994. nevergrad/instrumentation/test_variables.py::test_log_9[0-0.9482]
  995. nevergrad/instrumentation/test_variables.py::test_log_9[-11-0.9]
  996. nevergrad/instrumentation/test_variables.py::test_log_9[10-0.999]
  997. /build/source/nevergrad/instrumentation/variables.py:301: DeprecationWarning: ng.var.Log variable will disappear in the next version, please update your code to use ng.p.Log instead (slightly different API).
  998. "please update your code to use ng.p.Log instead (slightly different API).", DeprecationWarning)
  999.  
  1000. nevergrad/instrumentation/variables.py:273
  1001. nevergrad/instrumentation/variables.py:273
  1002. nevergrad/instrumentation/variables.py:273
  1003. nevergrad/instrumentation/variables.py:273
  1004. nevergrad/instrumentation/variables.py:273
  1005. nevergrad/instrumentation/variables.py:273
  1006. nevergrad/instrumentation/variables.py:273
  1007. nevergrad/instrumentation/test_variables.py::test_scalar
  1008. nevergrad/instrumentation/test_variables.py::test_log[0-0.01]
  1009. nevergrad/instrumentation/test_variables.py::test_log[10-0.1]
  1010. nevergrad/instrumentation/test_variables.py::test_log[-10-0.001]
  1011. nevergrad/instrumentation/test_variables.py::test_log[20-0.1]
  1012. nevergrad/instrumentation/test_variables.py::test_log[9-0.07943]
  1013. nevergrad/instrumentation/test_variables.py::test_log_int
  1014. nevergrad/instrumentation/test_variables.py::test_log_9[0-0.9482]
  1015. nevergrad/instrumentation/test_variables.py::test_log_9[-11-0.9]
  1016. nevergrad/instrumentation/test_variables.py::test_log_9[10-0.999]
  1017. /build/source/nevergrad/instrumentation/variables.py:273: DeprecationWarning: ng.var.Scalar variable will disappear in the next version, please update your code to use ng.p.Scalar instead (slightly different API).
  1018. "please update your code to use ng.p.Scalar instead (slightly different API).", DeprecationWarning)
  1019.  
  1020. nevergrad/instrumentation/variables.py:133
  1021. nevergrad/instrumentation/variables.py:133
  1022. nevergrad/instrumentation/variables.py:133
  1023. nevergrad/instrumentation/variables.py:133
  1024. nevergrad/instrumentation/variables.py:133
  1025. nevergrad/instrumentation/variables.py:133
  1026. nevergrad/instrumentation/variables.py:133
  1027. nevergrad/instrumentation/variables.py:133
  1028. nevergrad/instrumentation/test_variables.py::test_scalar
  1029. nevergrad/instrumentation/test_variables.py::test_array_as_ascalar
  1030. nevergrad/instrumentation/test_variables.py::test_array_as_ascalar
  1031. nevergrad/instrumentation/test_variables.py::test_array_as_ascalar
  1032. nevergrad/instrumentation/test_variables.py::test_array_as_ascalar
  1033. nevergrad/instrumentation/test_variables.py::test_array_as_ascalar
  1034. nevergrad/instrumentation/test_variables.py::test_array
  1035. nevergrad/instrumentation/test_variables.py::test_log[0-0.01]
  1036. nevergrad/instrumentation/test_variables.py::test_log[10-0.1]
  1037. nevergrad/instrumentation/test_variables.py::test_log[-10-0.001]
  1038. nevergrad/instrumentation/test_variables.py::test_log[20-0.1]
  1039. nevergrad/instrumentation/test_variables.py::test_log[9-0.07943]
  1040. nevergrad/instrumentation/test_variables.py::test_log_int
  1041. nevergrad/instrumentation/test_variables.py::test_log_9[0-0.9482]
  1042. nevergrad/instrumentation/test_variables.py::test_log_9[-11-0.9]
  1043. nevergrad/instrumentation/test_variables.py::test_log_9[10-0.999]
  1044. /build/source/nevergrad/instrumentation/variables.py:133: DeprecationWarning: ng.var.Array variable will disappear in the next version, please update your code to use ng.p.Array instead (slightly different API).
  1045. "please update your code to use ng.p.Array instead (slightly different API).", DeprecationWarning)
  1046.  
  1047. nevergrad/instrumentation/variables.py:57
  1048. nevergrad/instrumentation/variables.py:57
  1049. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1050. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1051. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1052. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1053. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_init_error
  1054. nevergrad/instrumentation/test_variables.py::test_gaussian
  1055. /build/source/nevergrad/instrumentation/variables.py:57: DeprecationWarning: Gaussian variable will disappear in the next version, please update your code to use ng.p.Array instead (different API).
  1056. "please update your code to use ng.p.Array instead (different API).", DeprecationWarning)
  1057.  
  1058. nevergrad/instrumentation/variables.py:40
  1059. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1060. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1061. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1062. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1063. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1064. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1065. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1066. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1067. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1068. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1069. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1070. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1071. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1072. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1073. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1074. /build/source/nevergrad/instrumentation/variables.py:40: DeprecationWarning: OrderedDiscrete and UnorderedDiscrete will disappear in the next version, please update your code to use ng.p.TransitionChoice instead.
  1075. "please update your code to use ng.p.TransitionChoice instead.", DeprecationWarning)
  1076.  
  1077. nevergrad/benchmark/test_experiments.py::test_experiments_registry[mlda]
  1078. nevergrad/benchmark/test_experiments.py::test_experiments_registry[realworld]
  1079. /build/source/nevergrad/functions/mlda/problems.py:46: RuntimeWarning: invalid value encountered in true_divide
  1080. self._points /= np.std(self._points, axis=0, keepdims=True)
  1081.  
  1082. nevergrad/benchmark/test_experiments.py::test_experiments_registry[mlda]
  1083. nevergrad/benchmark/test_experiments.py::test_experiments_registry[realworld]
  1084. /build/source/nevergrad/functions/mlda/problems.py:185: RuntimeWarning: invalid value encountered in true_divide
  1085. raw_data /= np.std(raw_data, axis=0, keepdims=True)
  1086.  
  1087. nevergrad/functions/multiobjective/test_core.py::test_readme_example
  1088. nevergrad/optimization/test_base.py::test_optimize_and_dump
  1089. nevergrad/optimization/test_base.py::test_dump_deprecated_init_optimizer
  1090. nevergrad/optimization/test_utils.py::test_get_nash
  1091. /build/source/nevergrad/optimization/base.py:74: DeprecationWarning: "instrumentation" __init__ parameter has been renamed to "parametrization" for consistency. using it will not be supported starting at v0.4.0 (coming soon!)
  1092. "using it will not be supported starting at v0.4.0 (coming soon!)", DeprecationWarning)
  1093.  
  1094. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1095. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1096. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1097. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1098. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1099. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1100. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1101. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1102. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1103. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1104. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1105. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1106. nevergrad/instrumentation/test_variables.py::test_softmax_categorical_deterministic
  1107. nevergrad/instrumentation/test_variables.py::test_softmax_categorical_deterministic
  1108. nevergrad/instrumentation/test_variables.py::test_softmax_categorical
  1109. nevergrad/instrumentation/test_variables.py::test_softmax_categorical
  1110. /build/source/nevergrad/instrumentation/variables.py:32: DeprecationWarning: SoftmaxCategorical will disappear in the next version, please update your code to use ng.p.Choice instead.
  1111. "please update your code to use ng.p.Choice instead.", DeprecationWarning)
  1112.  
  1113. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1114. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1115. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1116. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1117. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1118. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1119. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1120. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1121. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1122. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1123. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1124. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1125. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_init_error
  1126. /build/source/nevergrad/instrumentation/multivariables.py:17: DeprecationWarning: Instrumentation has been moved and is no more necessary to parametrize an optimizer, if you still need it anyway, you should import it like other parameters as nevergrad.p.Instrumentation.
  1127. "nevergrad.p.Instrumentation.", DeprecationWarning)
  1128.  
  1129. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1130. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_data_to_arguments
  1131. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1132. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1133. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1134. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1135. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1136. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1137. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1138. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1139. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1140. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1141. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1142. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1143. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1144. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1145. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1146. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1147. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1148. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1149. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1150. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1151. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1152. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1153. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1154. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1155. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1156. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1157. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1158. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1159. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1160. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1161. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1162. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1163. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1164. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1165. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1166. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1167. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1168. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1169. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1170. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1171. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1172. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1173. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1174. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1175. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1176. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1177. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1178. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1179. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1180. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1181. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1182. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1183. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1184. nevergrad/instrumentation/test_variables.py::test_softmax_categorical_deterministic
  1185. nevergrad/instrumentation/test_variables.py::test_softmax_categorical
  1186. nevergrad/instrumentation/test_variables.py::test_softmax_categorical
  1187. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1188. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1189. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1190. nevergrad/instrumentation/test_variables.py::test_expected_value[var10-data10-91]
  1191. /build/source/nevergrad/parametrization/container.py:153: DeprecationWarning: "data_to_arguments" is deprecated, please use "set_standardized_data" instead
  1192. warnings.warn('"data_to_arguments" is deprecated, please use "set_standardized_data" instead', DeprecationWarning)
  1193.  
  1194. nevergrad/instrumentation/test_multivariables.py::test_instrumentation
  1195. nevergrad/instrumentation/test_variables.py::test_softmax_categorical
  1196. nevergrad/instrumentation/test_variables.py::test_ordered_discrete
  1197. /build/source/nevergrad/parametrization/container.py:133: DeprecationWarning: "arguments_to_data" is deprecated, please use "get_standardized_data" instead
  1198. warnings.warn('"arguments_to_data" is deprecated, please use "get_standardized_data" instead', DeprecationWarning)
  1199.  
  1200. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1201. /build/source/nevergrad/parametrization/container.py:94: DeprecationWarning: "with_name" is deprecated, please use "set_name" instead
  1202. warnings.warn('"with_name" is deprecated, please use "set_name" instead', DeprecationWarning)
  1203.  
  1204. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1205. /build/source/nevergrad/parametrization/container.py:158: UserWarning: set_cheap_constraint_checker is deprecated in favor of register_cheap_constraint with slightly different API:
  1206. the registered function must only take one argument (the value of the parameter, for an Instrumentation, this is a tuple countaining the tuple of args and the dict of kwargs
  1207. warnings.warn("set_cheap_constraint_checker is deprecated in favor of register_cheap_constraint with "
  1208.  
  1209. nevergrad/instrumentation/test_multivariables.py::test_instrumentation_copy
  1210. /build/source/nevergrad/parametrization/container.py:99: DeprecationWarning: cheap_constraint_check(*args, **kwargs) is deprecated, use satisfies_constraints() instead
  1211. DeprecationWarning)
  1212.  
  1213. nevergrad/parametrization/test_parameter.py::test_endogeneous_constraint
  1214. /build/source/nevergrad/parametrization/core.py:271: UserWarning: Lambda as constraint is not advice because it may not be picklable
  1215. warnings.warn("Lambda as constraint is not advice because it may not be picklable")
  1216.  
  1217. nevergrad/parametrization/test_utils.py::test_random_crossover
  1218. /build/source/nevergrad/parametrization/utils.py:180: UserWarning: Crossover can only handle up to 30 arrays
  1219. warnings.warn("Crossover can only handle up to 30 arrays")
  1220.  
  1221. -- Docs: https://docs.pytest.org/en/latest/warnings.html
  1222. ===== 8 failed, 1439 passed, 31 skipped, 184 warnings in 170.67s (0:02:50) =====
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement