Skip to main content

Autonomous data acquisition

Project description

gpCAM

PyPI Documentation Status gpCAM CI Codecov PyPI - License DOI Downloads

gpCAM (gpcam.lbl.gov) is an API and software designed to make advanced Gaussian Process function approximation and autonomous data acquisition/Bayesian Optimization for experiments and simulations more accurate, faster, simpler, and more widely available. The tool is based on a flexible and powerful Gaussian process regression at the core. The flexibility stems from the modular design of gpCAM which allows the user to implement and import their own Python functions to customize and control almost every aspect of the software. That makes it possible to easily tune the algorithm to account for various kinds of physics and other domain knowledge and to identify and find interesting features, in Euclidean and non-Euclidean spaces. A specialized function optimizer in gpCAM can take advantage of HPC architectures for fast analysis time and reactive autonomous data acquisition. gpCAM broke a 2019 record for the largest exact GP ever run! Below you can see a simple example of how to set up an autonomous experimentation loop.

Usage

The following demonstrates a simple usage of the gpCAM API (see interactive demo).

!pip install gpcam

from gpCAM import GPOptimizer

my_gp = GPOptimizer(x_data,y_data,)
my_gp.train()

train_at = [10,20,30] #optional
for i in range(100):
    new = my_gp.ask(np.array([[0.,1.]]))["x"]
    my_gp.tell(new, f1(new).reshape(len(new)))
    if i in train_at: my_gp.train()

Credits

Main Developer: Marcus Noack (MarcusNoack@lbl.gov) Many people from across the DOE national labs (especially BNL) have given insights that led to the code in it's current form. See AUTHORS for more details on that.

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

gpcam-8.2.4.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

gpcam-8.2.4-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file gpcam-8.2.4.tar.gz.

File metadata

  • Download URL: gpcam-8.2.4.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gpcam-8.2.4.tar.gz
Algorithm Hash digest
SHA256 f65c1e643974108aece779dae15b5520c405b9d366993732e52813b7c67ddaac
MD5 55a583f3f0bc62e9ca6d9c2a3263f856
BLAKE2b-256 c1cf3adb0ee1e29dee392fecf98e7bd97d054ad9ca5dec22690faaac420e6c81

See more details on using hashes here.

File details

Details for the file gpcam-8.2.4-py3-none-any.whl.

File metadata

  • Download URL: gpcam-8.2.4-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gpcam-8.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 442192a4232320afed4b481cbecc26a5f0321d441c8377bec9844023b5351764
MD5 70381c0477c3dac52d5ce0caf5c013d4
BLAKE2b-256 1a8dd3ad2d2499f47691084dae42e7c0c37987ff971737211e60aa9886975940

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page