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


Release history Release notifications | RSS feed

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.3.7.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

gpcam-8.3.7-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gpcam-8.3.7.tar.gz
Algorithm Hash digest
SHA256 e5e35ff582c14035529fa13b3fbfdde0d79b4a66c3c9f35058d4441ddfb7cb47
MD5 92eeade14a41e260307040cd0e40c3c9
BLAKE2b-256 6b94c5477626890135659ed33b7a0a5ace56de629ad3cdab0f1c495a1e72bd76

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gpcam-8.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e588f929363e7a3eb16e08fec55694a0d94eaef7b4b0734ff56a6bf7b34e7f
MD5 c9cc7690fec1ba1d60b07a0874f2673e
BLAKE2b-256 42c5e9ca68fdded0bfde03c4a0b9627b2e74f3da27e568f482d8b05e714d892e

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