Skip to main content

Toolkit for decision making under uncertainty.

Project description

Emukit

Build Status | Documentation Status | Tests Coverage | GitHub License

Website | Documentation | Contribution Guide

Emukit is a highly adaptable Python toolkit for enriching decision making under uncertainty. This is particularly pertinent to complex systems where data is scarce or difficult to acquire. In these scenarios, propagating well-calibrated uncertainty estimates within a design loop or computational pipeline ensures that constrained resources are used effectively.

The main features currently available in Emukit are:

  • Multi-fidelity emulation: build surrogate models when data is obtained from multiple information sources that have different fidelity and/or cost;
  • Bayesian optimisation: optimise physical experiments and tune parameters of machine learning algorithms;
  • Experimental design/Active learning: design the most informative experiments and perform active learning with machine learning models;
  • Sensitivity analysis: analyse the influence of inputs on the outputs of a given system;
  • Bayesian quadrature: efficiently compute the integrals of functions that are expensive to evaluate.

Emukit is agnostic to the underlying modelling framework, which means you can use any tool of your choice in the Python ecosystem to build the machine learning model, and still be able to use Emukit.

Installation

To install emukit, simply run

pip install emukit

For other install options, see our documentation.

Dependencies / Optional Extras

Core dependencies are the numerical Python stack (NumPy, SciPy, matplotlib, emcee). Optional groups enable additional features without pulling heavy dependencies into a minimal install:

  • gpy: Gaussian process wrappers, multi-fidelity models, Bayesian quadrature (adds GPy). Also see notice below.
  • bnn: Bayesian neural network (Bohamiann) and Profet meta-surrogate examples (adds pybnn, torch).
  • sklearn: scikit-learn model wrapper and examples (adds scikit-learn).
  • docs: Build documentation locally (adds Sphinx toolchain + GPy to render GP API docs).
  • tests: Test tooling.
  • full: Convenience meta extra installing all of the above.

Install extras via pip:

# Core install
pip install emukit

# Add GPy-based functionality
pip install emukit[gpy]

# Bohamiann & Profet examples (Bayesian neural nets)
pip install emukit[bnn]

# scikit-learn model wrapper support
pip install emukit[sklearn]

# Build documentation (includes GPy + Sphinx toolchain)
pip install emukit[docs]

# Bundle for running most example scripts (GPy + pybnn + torch + scikit-learn)
pip install emukit[examples]

# Everything (gpy + bnn + sklearn + examples + docs + test tooling)
pip install emukit[full]

Legacy pinned requirement files remain in the requirements/ directory for reference but extras (above) are the preferred installation mechanism going forward.

NumPy 2 notice

Core Emukit functionality works with NumPy 2.0+. However, some parts of Emukit (e.g. most acquisition functions) need GPy, that for the time being is a bit behind. If using GPy is critical for you, consider installing earlier versions of Emukit.

Getting started

For examples see our tutorial notebooks.

Documentation

To learn more about Emukit, refer to our documentation.

To learn about emulation as a concept, check out the Emukit playground project.

Citing the library

If you are using emukit, we would appreciate if you could cite our papers about Emukit in your research:

@inproceedings{emukit2019,
  author = {Paleyes, Andrei and Pullin, Mark and Mahsereci, Maren and McCollum, Cliff and Lawrence, Neil and González, Javier},
  title = {Emulation of physical processes with {E}mukit},
  booktitle = {Second Workshop on Machine Learning and the Physical Sciences, NeurIPS},
  year = {2019}
}

@article{emukit2023,
  title={Emukit: A {P}ython toolkit for decision making under uncertainty},
  author={Andrei Paleyes and Maren Mahsereci and Neil D. Lawrence},
  journal={Proceedings of the Python in Science Conference},
  year={2023}
}

The papers themselves can be found at these links: NeurIPS workshop 2019, SciPy conference 2023.

License

Emukit is licensed under Apache 2.0. Please refer to LICENSE and NOTICE for further license information.

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

emukit-0.5.0.tar.gz (186.0 kB view details)

Uploaded Source

Built Distribution

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

emukit-0.5.0-py3-none-any.whl (283.9 kB view details)

Uploaded Python 3

File details

Details for the file emukit-0.5.0.tar.gz.

File metadata

  • Download URL: emukit-0.5.0.tar.gz
  • Upload date:
  • Size: 186.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for emukit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 0017e46b2146580b855de9d09443de3711349f7782f169dda8dc9bf76e483e38
MD5 b4e1b60b4d4ff253a1e6186110ed5660
BLAKE2b-256 d0437e85d3becbcb34651eeb6324347318afefa8377fdc45000dee4e0acf88f0

See more details on using hashes here.

File details

Details for the file emukit-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: emukit-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 283.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for emukit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 227ec3dc0911f75a6016281c54b896bebf2b66fdc45e114b8c95b6fc9fd840e6
MD5 c0d86e4bfeed12d60eb263bf8ef22b6c
BLAKE2b-256 6de00968a39fa9964b50cb23da5d6737905a9b927176ca81372e7b488dc68e26

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