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}
}

Metadata

Release files for laplace-bayesopt 0.2.0

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.2.0
File Size Uploaded Provenance Actions
laplace_bayesopt-0.2.0.tar.gz 8.0 kB Without provenance Details for laplace_bayesopt-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.5 kB

Release files / laplace_bayesopt-0.2.0.tar.gz

Download URL laplace_bayesopt-0.2.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c2791073f63c347471cf2cbfa4b105ef4da5a55d3317bfb7319d3eb383101918
BLAKE2b-256 checksum
How to use checksums
7a673b441ae85e73cfc54be78fe1e2a120d93b99471ad849eecb84592be10861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL laplace_bayesopt-0.2.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a984d162e41cc08a568d1479db298c00a44e6d411b6c910066f3ecda350d731
BLAKE2b-256 checksum
How to use checksums
118583cf02e0f6117ec5fabf72903a1814f6844a4fce331de90bf55d1d82b24b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for laplace-bayesopt 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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