Skip to main content

A Python toolbox for performing gradient-free optimization

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nevergrad-0.4.0.post3.tar.gz (191.7 kB view details)

Uploaded Source

Built Distribution

nevergrad-0.4.0.post3-py3-none-any.whl (250.8 kB view details)

Uploaded Python 3

File details

Details for the file nevergrad-0.4.0.post3.tar.gz.

File metadata

  • Download URL: nevergrad-0.4.0.post3.tar.gz
  • Upload date:
  • Size: 191.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for nevergrad-0.4.0.post3.tar.gz
Algorithm Hash digest
SHA256 bdc3d0e7430e7a8d338d516eeb17eb7923f06ba66e2277d599661a3c06d6fa5d
MD5 7baa724b4de04d6e5a6bf7eeb736fb6e
BLAKE2b-256 d2af025a9443953656bc81129d0cc63be0447a148f4bd0d7942c667d31895411

See more details on using hashes here.

Provenance

File details

Details for the file nevergrad-0.4.0.post3-py3-none-any.whl.

File metadata

  • Download URL: nevergrad-0.4.0.post3-py3-none-any.whl
  • Upload date:
  • Size: 250.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for nevergrad-0.4.0.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5e2dabeacf54c2c115ada53a7746d2b747ce4fd334f953a10acbc67106fcb6
MD5 0c66f085644fe7753e947b4d4034d060
BLAKE2b-256 818064c172d2ce3bb642738cfcc759d9573e93536a7e6ef39c6604781bca7791

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page