GPyTorch is a Gaussian Process library, implemented using PyTorch. It is designed for creating flexible and modular Gaussian Process models with ease, so that you don't have to be an expert to use GPs.
This package is currently under development, and is likely to change. Some things you can do right now:
- Simple GP regression (example here)
- Simple GP classification (example here)
- Multitask GP regression (example here)
- Extrapolation using the spectral mixture kernel (example here)
- Scalable GP regression using kernel interpolation (example here)
- Scalable GP classification using kernel interpolation (example here)
- Scalable GP regression in multiple dimensions (example here)
- Scalable GP classification in multiple dimensions (example here)
Make sure you have PyTorch (>= 0.2.0) installed.
In addition, you will need libfftw3 (>= 3.3.6) installed on your machine. This can be downloaded here, or installed for example on Ubuntu using
sudo apt-get install libfftw3-3
If you install libfftw3 from source, be sure to run configure
with --enable-shared
. Our build script by default looks for libraries in /usr/local/lib
, which is the default installation
location for libfftw3. If it is installed elsewhere, however, be sure to either add the new location to your LD_LIBRARY_PATH
environment variable, or add the new location to build.py
in
library_dirs
.
git clone https://github.com/jrg365/gpytorch.git
cd gpytorch
python setup.py install
Still a work in progress. For now, please refer to the following example Jupyter notebooks.
To run the unit tests:
python -m pytest
Development of GPyTorch is supported by funding from the Bill and Melinda Gates Foundation.