Skip to main content

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

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.2.1.tar.gz (23.6 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.2.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: waggon-0.2.1.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for waggon-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e015a8ec089da3b4d47afaa875beb57d19a0d7cbcc5439a7bf2e044308c018e8
MD5 59830551cacd69136b42f0cde689dfa5
BLAKE2b-256 1def0b5babb3a99264dda5db84b603b559a3833594b6ac73a645b7d153042d96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waggon-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for waggon-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9adf9acaf2d5299c4403a2b65210a67062bedf82d13e6354e385398dd49bce8
MD5 c8a59c5138ff97219ea2b004159e9ab1
BLAKE2b-256 baa4920fa8fa354a3fc9763975b58254e180343035acc0d39e28917f17fd5ac6

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