Skip to main content

# Bayesian2D

This package implements Bayesian optimization in Python for any 2D function. It uses Gaussian regression to create a surrogate function and the Maximum Probability of Improvement aquisition function to pick points to evaluate, thus finding the specified extremum of the function in only a few hundred evaluations.

# How to install

The package can simply be installed with ‘pip install Bayesian2D’.

# How to use

The package contains two directories- tools and tests. The tools folder contains all the separate python functions used by the algorithm, with the Bayesian2D function being the main function of the package.

To optimize your function just import ‘from Bayesian2D.tools import Bayesian2D’. The function takes as an input the function you wish to optimize and the bounds in which you wish to search for the extremum (there are a few built in named functions such as ‘Beale’ or ‘Ackley’ with the Rosenbrock function being the default but custom functions can also be inserted). The function also requires you to specify the number of initial points evaluated, the number of optimization cycles run, the number of random points evaluated by the surrogate function each cycle, the exploration constant and whether you want to find the maximum or minimum.

# Testing

Unit tests for all the functions used can be found in the aforementioned tests directory.

Metadata

Release files for Bayesian2D 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Bayesian2D 0.3.1
File Size Uploaded
Bayesian2D-0.3.1.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Bayesian2D 0.3.1
File Interpreter ABI Platform
Bayesian2D-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 kB

Release files / Bayesian2D-0.3.1.tar.gz

Download URL Bayesian2D-0.3.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f3d9e8ec7c2a6e3684fd140ed725d4366fb4f443fba2488ee696d98ddf43e999
BLAKE2b-256 checksum
How to use checksums
5ddb829d2abe56768e55c3fcea23d520e92e0eff5013de88c7fbcbd08312bc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

Release files / Bayesian2D-0.3.1-py3-none-any.whl

Download URL Bayesian2D-0.3.1-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e77aa73c0323b2e08a162634d246d59137b7db3147516101302a3887909b8dd
BLAKE2b-256 checksum
How to use checksums
18021f8fe4785c4a07d823565a58219a230c7f9d94541f1e135ca09a1175ea2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page