Skip to main content

Bayesian Optimization Interface for laplace-torch

Installation

Install PyTorch first, then:

pip install --upgrade laplace-bayesopt

Usage

Basic usage

from laplace_bayesopt.botorch import LaplaceBoTorch

def get_net():
    # Return a *freshly-initialized* PyTorch model
    return torch.nn.Sequential(
        ...
    )

# Initial X, Y pairs, e.g. obtained via random search
train_X, train_Y = ..., ...

model = LaplaceBoTorch(get_net, train_X, train_Y)

# Use this model in your existing BoTorch loop, e.g. to replace BoTorch's SingleTaskGP model.

The full arguments of LaplaceBoTorch can be found in the class documentation.

Check out examples in examples/.

Useful References

Citation

@inproceedings{kristiadi2023promises,
  title={Promises and Pitfalls of the Linearized {L}aplace in {B}ayesian Optimization},
  author={Kristiadi, Agustinus and Immer, Alexander and Eschenhagen, Runa and Fortuin, Vincent},
  booktitle={AABI},
  year={2023}
}

Release files for laplace-bayesopt 0.1.7

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

Source distribution (sdist)

Source distribution for laplace-bayesopt 0.1.7
File Size Uploaded
laplace_bayesopt-0.1.7.tar.gz 95.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for laplace-bayesopt 0.1.7
File Interpreter ABI Platform
laplace_bayesopt-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 103.4 kB

Release files / laplace_bayesopt-0.1.7.tar.gz

Download URL laplace_bayesopt-0.1.7.tar.gz
Size 95.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8ed5510f6a1d9a0cd78e7bc66326f2794a3e505feef18fee7074940ba816ee
BLAKE2b-256 checksum
How to use checksums
7e4cc7561e7e0367a735a140dc4d6e59c8fb773713bc94cac8470360e7c54154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.18.1 CPython/3.9.19 Darwin/24.1.0

Release files / laplace_bayesopt-0.1.7-py3-none-any.whl

Download URL laplace_bayesopt-0.1.7-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73886f024e35a97313e39f78370cc21b3a63461aafe1e1f4f81ff5cf4eda239e
BLAKE2b-256 checksum
How to use checksums
63e56908b136f75654cc5a32797025ce3cd84d2e14895cec9ae635404e40f202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.18.1 CPython/3.9.19 Darwin/24.1.0

Release history Release notifications | RSS feed

This release

0.1.7 This release

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

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