nevergrad

A Python toolbox for performing gradient-free optimization

  • 所有者: facebookresearch/nevergrad
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

CircleCI

Nevergrad - A gradient-free optimization platform

Nevergrad

nevergrad is a Python 3.6+ library. It can be installed with:

pip install nevergrad

More installation options and complete instructions are available in the "Getting started" section of the documentation.

You can join Nevergrad users Facebook group here.

Minimizing a function using an optimizer (here OnePlusOne) is straightforward:

import nevergrad as ng

def square(x):
    return sum((x - .5)**2)

optimizer = ng.optimizers.OnePlusOne(parametrization=2, budget=100)
recommendation = optimizer.minimize(square)
print(recommendation)  # optimal args and kwargs
>>> Array{(2,)}[recombination=average,sigma=1.0]:[0.49971112 0.5002944 ]

Example of optimization

Convergence of a population of points to the minima with two-points DE.

Documentation

Check out our documentation! It's still a work in progress, don't hesitate to submit issues and/or PR to update it and make it clearer!

Citing

@misc{nevergrad,
    author = {J. Rapin and O. Teytaud},
    title = {{Nevergrad - A gradient-free optimization platform}},
    year = {2018},
    publisher = {GitHub},
    journal = {GitHub repository},
    howpublished = {\url{https://GitHub.com/FacebookResearch/Nevergrad}},
}

License

nevergrad is released under the MIT license. See LICENSE for additional details about it.

主要指标

概览
名称与所有者facebookresearch/nevergrad
主编程语言Python
编程语言Python (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2018-11-21 00:33:17
推送于2025-05-30 21:38:02
最后一次提交
发布数70
最新版本名称1.0.12 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数4.1k
关注者数56
派生数367
提交数1.1k
已启用问题?
问题数270
打开的问题数84
拉请求数1121
打开的拉请求数46
关闭的拉请求数261
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?