Skip to main content

A machine learning library intended for surrogate modeling tasks.

Project description

IFE Surrogate GP

A flexible and extensible library for Gaussian Processes, built with performance and modularity in mind.


Features

  • High-performance kernels (JAX-compatible)
  • Composable API for building custom models
  • Multiple optimizers (Optax, Scipy, etc.)
  • Automatic hyperparameter handling
  • Built-in training workflows

Installation

pip install ife_surrogate

Usage

Quickstart

import ife_surrogate


dataset = np.load("some_data.npy", allow_pickle=True).item()
X, Y, f = dataset["X"], dataset["Y"], dataset["f"]

key = jr.key(seed=42)
(X_train, Y_train), (X_test, Y_test), _= train_test_split(
    X=X, Y=Y, f=f, 
    split=(0.9, 0.1, 0), 
    key= key
)

d = X_train.shape[1]
priors = {"lengthscale": Uniform(1e-0, 1e1), "power": Uniform(1, 2)}
kernel = kernels.Kriging(lengthscale=jnp.ones(d), power=jnp.ones(d), priors=priors)

model = models.WidebandGP(X_train, Y_train, kernel, f)

trainer = trainers.SwarmTrainer(number_iterations=200, number_particles=100)
trainer.train(model)

pred, var = model.predict(X_test)
---

##  Documentation

- [API Reference](#)  
- [Tutorials](#)  
- [Examples](#)  

---

##  Key Components

- **Kernels**  
  - Kriging
  - RBF
  - Matern
  - SumKernel
  - ProductKernel
  - Scale
  - RQ
  - Noise

- **Models**  
  - WidebandGP
  - ScalerGP

- **Trainers*  
  - OptaxTrainer  
  - SwarmTrainer

---

##  Roadmap

- [ ] Add more kernels  
- [ ] GPU/TPU support  
- [ ] Bayesian optimization tools  
- [ ] Interactive visualization  

---

##  Contributing

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.  

---

##  License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.  

---

##  Acknowledgements

- JAX team for the amazing ecosystem  
- Prior Gaussian Process libraries for inspiration  

---


## Dependencies

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

ife_surrogate-0.2.1.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

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

ife_surrogate-0.2.1-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file ife_surrogate-0.2.1.tar.gz.

File metadata

  • Download URL: ife_surrogate-0.2.1.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for ife_surrogate-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7b2d1208c91a0b3ef0451d26a5d6f470139930d9b6bf46e89264b3103e0d86cc
MD5 d2ee682013e9fdb37a1e57b32ce7097d
BLAKE2b-256 8cd3ad5771f72eb2a76f99bd7f21f761b8b083283de3ae208552e08abeb09703

See more details on using hashes here.

File details

Details for the file ife_surrogate-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ife_surrogate-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 49.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for ife_surrogate-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 310b1fe8080d9fbc1ca3dc8ee9190914f55e35ead1966be69281c9ce4089f3a2
MD5 88c1629405d4612d42b4511474428e9a
BLAKE2b-256 4fba9bb04315dd0a3b5127a90beb62b5cd05edd750cb7cf2e77290843474e5b2

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