Skip to main content

Various easy-to-use extensions for Gaussian process models and a framework for composition of extensions.

Project description

Vanguard: Advanced GPs

Unit Tests Coverage Pre-commit Checks Linting: Pylint Python version PyPI Beta

Vanguard is a high-level wrapper around GPyTorch and aims to provide a user-friendly interface for training and using Gaussian process models. Vanguard's main objective is to make a variety of more advanced GP techniques in the machine learning literature available for easy use by a non-specialists and specialists alike. Vanguard is designed for modularity to facilitate straightforward combinations of different techniques.

Vanguard implements many advanced Gaussian process techniques, as showcased in our examples folder. These techniques and others implemented within the Vanguard paradigm can be combined straightforwardly with minimal extra code, and without requiring specialist GP knowledge.

Installation

To install Vanguard:

$ pip install vanguard-gp

Note that it is vanguard-gp and not vanguard. However, to import the package, use from vanguard import ....

There are optional sets of additional dependencies:

  • vanguard-gp[test] is required to run the tests;
  • vanguard-gp[doc] is for compiling the Sphinx documentation;
  • vanguard-gp[notebook] contains all dependencies for the example notebooks;
  • vanguard-gp[dev] includes all tools and packages a developer of Vanguard might need.

Should the installation of Vanguard fail, you can see the versions used by the Vanguard development team in uv.lock. You can transfer these to your own project as follows. First, install UV. Then, clone the repo from GitHub. Next, run

uv export --format requirements-txt

which will generate a requirements.txt. Install this in your own project before trying to install Vanguard itself,

pip install -r requirements.txt
pip install vanguard-gp

Documentation

Vanguard's documentation can be found online.

Alternatively, you can build the documentation from source - instructions for doing so can be found in CONTRIBUTING.md.

Examples

Vanguard contains a number of example notebooks, contained in the examples/notebooks folder. These are designed to showcase certain features of Vanguard within the context of a data science problem. To run them, you will need to first install the additional requirements:

$ pip install .[notebook]

If you are in a virtual environment, you can then run the following to add the vanguard kernel to Jupyter, which makes running the notebooks as frictionless as possible:

$ ipython kernel install --name vanguard --user

Warning: Certain notebooks can take a long time to run, even on a GPU. To see fully rendered examples, please visit the documentation.

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

vanguard_gp-3.0.0.tar.gz (141.9 kB view details)

Uploaded Source

Built Distribution

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

vanguard_gp-3.0.0-py3-none-any.whl (184.5 kB view details)

Uploaded Python 3

File details

Details for the file vanguard_gp-3.0.0.tar.gz.

File metadata

  • Download URL: vanguard_gp-3.0.0.tar.gz
  • Upload date:
  • Size: 141.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for vanguard_gp-3.0.0.tar.gz
Algorithm Hash digest
SHA256 233fe32a1bfe09d382f99b01bde394dab3b7870bee15091815b2fdf3dcd99b60
MD5 9bfdb86b26f3beaaba8194327cbacb8d
BLAKE2b-256 dc728c5b0069a54082d5212996078a0dfd092db38f6dc873f9fe19389442ba76

See more details on using hashes here.

File details

Details for the file vanguard_gp-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: vanguard_gp-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 184.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for vanguard_gp-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc3338f8498624c2ce770bcaad9503669d379e8c65a299f07c9f9d106baacda
MD5 d3ce3e01efcc1ef88856b35608984e6e
BLAKE2b-256 3c792ad8f2b802b70b698ad6a527a4f09e2c8be6d4ec44752868331369270de7

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