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 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.

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.1.0.tar.gz (408.4 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.1.0-py3-none-any.whl (458.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vanguard_gp-3.1.0.tar.gz
Algorithm Hash digest
SHA256 0fcf6d92c1192d428c515c9951b56aeadeece2ab9d3aded8db2472eabd91f8a1
MD5 99fd3ee198e328e91489f2214202779a
BLAKE2b-256 d80bcf02de5912f788a6d4a58957d9a12016dbc638947d69a2baa4a905450727

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vanguard_gp-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4edba5413a0b6d745e74bf1aab208196891c75f8dbbfe26fa4bed882830fee67
MD5 6f5547b4190e4e31a91171113d024516
BLAKE2b-256 d312d4099cd4b0ec9c94462ac6eea2f180cf65581b8ff168c1bc93c3604fd76a

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