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.tar.gz (183.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nevergrad-0.4.0.tar.gz
  • Upload date:
  • Size: 183.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for nevergrad-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7abe1a6929ee628986db1c71593dfdb25659072ccce1a40416b0e13de2af51ad
MD5 3bf3c963be2d4abb3f66bc0474d37b10
BLAKE2b-256 a75ad8baddee74069d38ac2ae3a413e076a29709d1d19136c55832aa49d57051

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: nevergrad-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 241.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for nevergrad-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62add17ee9d1010ff8ceb33f27f8e2dd4c6e7dc3ad7973eb578bc230247258c1
MD5 72c2282963e71d93b239bf9b0a418439
BLAKE2b-256 093308dae45f0a2ae5eb6f9c65bfd82afc93d5832a6ffabddd4f68f02025130a

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