An implementation of Q-Exponential Processes in Pytorch based on GPyTorch
Project description
QⓔPyTorch 
QⓔPyTorch is a Python package for Q-exponential process (QEP) implemented using PyTorch and built upon GPyTorch. QⓔPyTorch is designed to facilitate creating scalable, flexible, and modular QPE models.
Different from GPyTorch for Gaussian process (GP) models, QⓔPyTorch focuses on QEP, which generalizes GP by allowing flexible regularization on function spaces through a parameter $q>0$ and embraces GP as a special case with $q=2$. QEP is proven to be superior than GP in modeling inhomogeneous objects with abrupt changes or sharp contrast for $q<2$ [Li et al (2023)]. Inherited from GPyTorch, QⓔPyTorch has an efficient and scalable implementation by taking advantage of numerical linear algebra library LinearOperator and improved GPU utilization.
Tutorials, Examples, and Documentation
See documentation on how to construct various QEP models in QⓔPyTorch.
Installation
Requirements:
- Python >= 3.10
- PyTorch >= 2.0
- GPyTorch >= 1.14
Stable Version
Install QⓔPyTorch using pip or conda:
pip install qpytorch
conda install qpytorch
(To use packages globally but install QⓔPyTorch as a user-only package, use pip install --user above.)
Latest Version
To upgrade to the latest version, run
pip install --upgrade git+https://github.com/lanzithinking/qepytorch.git
from source (for development)
If you are contributing a pull request, it is best to perform a manual installation:
git clone https://github.com/lanzithinking/qepytorch.git
cd qepytorch
# either
pip install -e .[dev,docs,examples,keops,pyro,test] # keops and pyro are optional
# or
conda env create -f env_install.yaml # installed in the environment qpytorch
Citing Us
If you use QⓔPyTorch, please cite the following paper:
@inproceedings{li2023QEP,
title={Bayesian Learning via Q-Exponential Process},
author={Li, Shuyi, Michael O'Connor, and Shiwei Lan},
booktitle={Advances in Neural Information Processing Systems},
year={2023}
}
Contributing
See the contributing guidelines CONTRIBUTING.md for information on submitting issues and pull requests.
The Team
QⓔPyTorch is primarily maintained by:
- Shiwei Lan (Arizona State University)
Thanks to the following contributors including (but not limited to)
- Shuyi Li, Guangting Yu, Zhi Chang, Chukwudi Paul Obite, Keyan Wu, and many more!
License
QⓔPyTorch is MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qpytorch-0.2.tar.gz.
File metadata
- Download URL: qpytorch-0.2.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4096181286d69b0581e961e1a05ba2628119cd6ffdc19b2781bb254f9dabcc
|
|
| MD5 |
dae78e66f91f474f80a48a31dc7abc06
|
|
| BLAKE2b-256 |
35ff48d047feeed9f5d9dff72d2a1904900571864ecef09cb62e20f64801f844
|
File details
Details for the file qpytorch-0.2-py3-none-any.whl.
File metadata
- Download URL: qpytorch-0.2-py3-none-any.whl
- Upload date:
- Size: 213.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a63b16512ea76443430e02ff918b4a998d70336446d85462e3ade01b7ae5349
|
|
| MD5 |
c183720eebc70a380a611da2642d460e
|
|
| BLAKE2b-256 |
cbc2edc86a4205db6e3e372ddd183ae75ce0e4597bfa5fdcc11eadcd0f7c1ddf
|