Skip to main content

WAsserstein Global Gradient-free OptimisatioN (WAGGON) methods library.

Reason this release was yanked:

incomplete

Project description

Welcome to WAGGON: WAssrestein Global Gradient-free OptimisatioN

PyPI version Documentation Downloads License: MIT

WAGGON is a python library of black box gradient-free optimisation. Currently, the library contains implementations of optimisation methods based on Wasserstein uncertainty and baseline approaches from the following papers:

  • Tigran Ramazyan, Mikhail Hushchyn and Denis Derkach. Global Optimisation of Black-Box Functions with Generative Models in the Wasserstein Space, 2024.[arxiv] [ECAI 2024 Proceedings]

Implemented methods

  • Wasserstein Uncertainty Global Optimisation (WU-GO)
  • Bayesian optimisation: via Expected Improvement (EI), Lower and Upper Confidence Bounds (LCB, UCB)

Installation

pip install waggon

or

git clone https://github.com/hse-cs/waggon
cd waggon
pip install -e

Basic usage

(See more examples in the documentation.)

The following code snippet is an example of surrogate optimisation.

import waggon
from waggon.optim import SurrogateOptimiser

from waggon.acquisitions import WU
from waggon.surrogates.gan import WGAN_GP as GAN
from waggon.test_functions import three_hump_camel

# initialise the function to be optimised
func = three_hump_camel()
# initialise the surrogate to carry out optimisation
surr = GAN()
# initialise optimisation acquisition function
acqf = WU()

# initialise optimiser
opt = SurrogateOptimiser(func=func, surr=surr, acqf=acqf)

# run optimisation
opt.optimise()

# visualise
waggon.utils.display()

Support

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

waggon-0.0.8.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waggon-0.0.8-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file waggon-0.0.8.tar.gz.

File metadata

  • Download URL: waggon-0.0.8.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for waggon-0.0.8.tar.gz
Algorithm Hash digest
SHA256 717556ac154b685d0630ed15fe157702cf870cd43f9740f0704bdd052530ab7f
MD5 7643b26467cdc482b230cc45543d8518
BLAKE2b-256 30cce2af36431319417d404a2c1cd6ef4ebc43277d11e8ad63b1b81e928c8632

See more details on using hashes here.

File details

Details for the file waggon-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: waggon-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for waggon-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 25dcc30a478fee70e6cc8871455bdb992c7fc94fda090f8c6e42bdf4dd998afe
MD5 5f2b4a3cda0dcf0760d6c3bd629ad62b
BLAKE2b-256 253c7943ddc667d1cd05f3d977292e722bd7e2630b294883711dbe2837fdd615

See more details on using hashes here.

Supported by

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