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.6.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.6-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpcam-8.3.6.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.6.tar.gz
Algorithm Hash digest
SHA256 21de3971e329f34e12438f2bff4934bfea30b24b5cb1d755cc1ce78abbd12513
MD5 faa7643b2f130cc1cbefb2b03fc0aaa1
BLAKE2b-256 7dca459e8cfc35591c439c0735244bf0de93a3cf6136e83966b8439ed263122b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpcam-8.3.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 049282a43d1d315bf81e2fe27d94e1fb84e3b7b46bb9c2ad9e04477651eef310
MD5 b55283c28da4b48c051a20c8169e2a4c
BLAKE2b-256 2574577e1d5ff7329242e84928ef9afc86c72d62284d53fbdbcce86db1f63453

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