Skip to main content

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 vanguard-gp[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.

Metadata

Release files for vanguard-gp 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vanguard-gp 3.1.0
File Size Uploaded
vanguard_gp-3.1.0.tar.gz 408.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vanguard-gp 3.1.0
File Interpreter ABI Platform
vanguard_gp-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 866.7 kB

Release files / vanguard_gp-3.1.0.tar.gz

Download URL vanguard_gp-3.1.0.tar.gz
Size 408.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0fcf6d92c1192d428c515c9951b56aeadeece2ab9d3aded8db2472eabd91f8a1
BLAKE2b-256 checksum
How to use checksums
d80bcf02de5912f788a6d4a58957d9a12016dbc638947d69a2baa4a905450727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / vanguard_gp-3.1.0-py3-none-any.whl

Download URL vanguard_gp-3.1.0-py3-none-any.whl
Size 458.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4edba5413a0b6d745e74bf1aab208196891c75f8dbbfe26fa4bed882830fee67
BLAKE2b-256 checksum
How to use checksums
d312d4099cd4b0ec9c94462ac6eea2f180cf65581b8ff168c1bc93c3604fd76a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page