By lbl-camera
Design and run autonomous experiments with gpCAM — custom Gaussian process kernels, acquisition functions, cost models, noise models, and prior means for adaptive sampling, peak-finding, and parameter optimization at scale.
Use when designing custom acquisition functions for gpCAM that encode experimental priorities — exploration vs exploitation balance, multi-objective targets, constrained search regions, cost-aware moves, UCB/LCB, or probability-of-improvement criteria.
Use when modeling the real expense of moving between gpCAM measurement points — motor travel time, settling, directional costs, sample damage, beam time, or zone-based penalties.
Use for end-to-end autonomous experiment design with gpCAM. Translates a scientist's description of their measurement into a complete, runnable gpCAM script — useful for replacing raster scans with adaptive sampling, peak-finding, or parameter optimization.
Use for large-scale gpCAM experiments (>10k points up to millions) using sparse compactly-supported kernels and Dask distributed computing for exact GP computation at scale.
Use when designing or composing custom kernel (covariance) functions for gpCAM that encode domain knowledge — smoothness, periodicity, symmetry, anisotropy, or non-Euclidean input spaces.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
[!WARNING] gpCAM 8.4.X is a beta release. It targets
fvgp ~= 4.8and renames a few constructor kwargs (gp2Scale_dask_client → dask_client,gp2Scale_linalg_mode → linalg_mode,gp_rank_n_update → rank_n_update) and removescalc_invin favor oflinalg_mode="CholInv". If you hit issues, pingpcam==8.3.9while you report — 8.3.9 remains the stable line. Full migration notes are in HISTORY.rst.
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.
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()
gpCAM ships with a set of Claude Code skills that guide an AI assistant through designing autonomous experiments — custom kernels, acquisition functions, noise models, and the full ask/tell/train loop. Experimentalists who want smart, autonomous data acquisition without deep knowledge of GP math or the gpCAM API can use these skills to design autonomous experiments.
The repo ships as a Claude Code plugin marketplace. Inside any Claude Code session, run:
/plugin marketplace add lbl-camera/gpCAM
/plugin install gpcam@gpcam
The first command registers this repo as a marketplace; the second installs the gpcam plugin from it, which bundles all of the skills below. After install, the skills are available to Claude in any project — no need to clone the repo locally.
To update later, run /plugin marketplace update gpcam; to remove, /plugin uninstall gpcam@gpcam.
npx claudepluginhub lbl-camera/gpcam --plugin gpcamAutonomous experiment loop — iteratively optimize any metric with git-tracked experiments
Autonomous experimentation skill — your AI coding agent designs experiments, tests hypotheses, discards failures, keeps wins. Runs overnight while you sleep.
Autonomous research orchestration: agents for hypothesis-driven investigation, experiment running, fresh-eyes review, and batch evaluation.
ML experiment tracking with metrics logging and run comparison
Scientific research agent extension - turns research goals into reproducible Jupyter notebooks with Python REPL, data analysis, and ML workflows
Optimize hyperparameters using grid/random/bayesian search