Lightweight Gaussian Process regression library
Project description
gplite
A lightweight Gaussian Process regression library built on NumPy and SciPy, originally designed for Δ-Machine Learning.
Features
- Gaussian Process regression with automatic hyperparameter optimization
- Multiple kernels: RBF, Matérn, Periodic, Constant (combinable via
+and*) - Active learning with multiple selection strategies (uncertainty, maximum absolute error, expected improvement)
- Model saving and loading with pickle
- Anisotropic kernels (support for per-dimension hyperparameters)
- String export for integration with external tools
Installation
pip install gplite
or for optional dependencies to run the example files
pip install "gplite[examples]"
Quick Start
The core workflow of gplite is designed to be highly intuitive. More detailed,
end-to-end examples can be found in the examples directory.
1. Standard Regression & Composable Kernels
import numpy as np
from gplite import GaussianProcess, RBFKernel, PeriodicKernel
X_train, y_train = ... # load your data
# easily combine kernels for complex data
kernel = (
RBFKernel(length_scale=2.0) +
PeriodicKernel(length_scale=1.0, period=2*np.pi)
)
# fit your model and use it for predictions
gp = GaussianProcess(kernel)
gp.fit(X_train, y_train, optimize=True)
y_mean, y_std = gp.predict(X_test, return_std=True)
2. Automated Active Learning
from gplite import ActiveLearner
learner = ActiveLearner(kernel=kernel, x_full=X_full, y_full=y_full)
# automatically train the model where it is most uncertain
learner.learn(
learning_strategy="uncertainty",
rmse_threshold=0.1,
max_points=50
)
y_pred = learner.gp.predict(X_test)
Modules
- GaussianProcess - core GP regression
- Kernels - RBF, Matérn, Periodic, Constant, composites
- ActiveLearning - automated model training
- Optimization - hyperparameter optimization
Requirements
- Python >= 3.10
- NumPy >= 2.2.6
- SciPy >= 1.15.3
License
GPLv3
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gplite-3.1.1.tar.gz.
File metadata
- Download URL: gplite-3.1.1.tar.gz
- Upload date:
- Size: 75.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
121fd4321e82f04f67de40928698f666763f5b624914745506c9509c81264922
|
|
| MD5 |
7afec9f4a9ea4da0daf5beb159bc3e1d
|
|
| BLAKE2b-256 |
ac56d8348ac516a41739fb2fd87a276cf5e12f6f8cbd3e65d82ce0e5a8662174
|
Provenance
The following attestation bundles were made for gplite-3.1.1.tar.gz:
Publisher:
publish.yaml on soconnor16/gplite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gplite-3.1.1.tar.gz -
Subject digest:
121fd4321e82f04f67de40928698f666763f5b624914745506c9509c81264922 - Sigstore transparency entry: 2003145229
- Sigstore integration time:
-
Permalink:
soconnor16/gplite@5cec0b3be9d5fbadb1a4480d92a608397d623362 -
Branch / Tag:
refs/tags/v3.1.1 - Owner: https://github.com/soconnor16
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@5cec0b3be9d5fbadb1a4480d92a608397d623362 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gplite-3.1.1-py3-none-any.whl.
File metadata
- Download URL: gplite-3.1.1-py3-none-any.whl
- Upload date:
- Size: 91.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673a96f0112c800a72e6eba16710ba0089ae45b4a79d4e6ec4e1833869a09c98
|
|
| MD5 |
82ea6794136e384c16953262656b100f
|
|
| BLAKE2b-256 |
ba4e6c94e51132f24d06a1ebfd85d26905a14a24d6a6494bd064bb666cbf2a9c
|
Provenance
The following attestation bundles were made for gplite-3.1.1-py3-none-any.whl:
Publisher:
publish.yaml on soconnor16/gplite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gplite-3.1.1-py3-none-any.whl -
Subject digest:
673a96f0112c800a72e6eba16710ba0089ae45b4a79d4e6ec4e1833869a09c98 - Sigstore transparency entry: 2003145326
- Sigstore integration time:
-
Permalink:
soconnor16/gplite@5cec0b3be9d5fbadb1a4480d92a608397d623362 -
Branch / Tag:
refs/tags/v3.1.1 - Owner: https://github.com/soconnor16
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@5cec0b3be9d5fbadb1a4480d92a608397d623362 -
Trigger Event:
push
-
Statement type: