Skip to main content

QⓔPyTorch Logo


Test Suite Documentation Status License

Python Version Conda PyPI

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:

Li, Shuyi, Michael O'Connor, and Shiwei Lan. "Bayesian Learning via Q-Exponential Process." In Advances in Neural Information Processing Systems (2023).

@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:

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.

Metadata

Release files for qpytorch 0.2

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

Source distribution (sdist)

Source distribution for qpytorch 0.2
File Size Uploaded Provenance Actions
qpytorch-0.2.tar.gz 5.2 MB Without provenance Details for qpytorch-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qpytorch 0.2
File Interpreter ABI Platform Actions
qpytorch-0.2-py3-none-any.whl Python 3 none any Details for qpytorch-0.2-py3-none-any.whl

Total release size: 5.4 MB

Release files / qpytorch-0.2.tar.gz

Download URL qpytorch-0.2.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0f4096181286d69b0581e961e1a05ba2628119cd6ffdc19b2781bb254f9dabcc
BLAKE2b-256 checksum
How to use checksums
35ff48d047feeed9f5d9dff72d2a1904900571864ecef09cb62e20f64801f844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / qpytorch-0.2-py3-none-any.whl

Download URL qpytorch-0.2-py3-none-any.whl
Size 213.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a63b16512ea76443430e02ff918b4a998d70336446d85462e3ade01b7ae5349
BLAKE2b-256 checksum
How to use checksums
cbc2edc86a4205db6e3e372ddd183ae75ce0e4597bfa5fdcc11eadcd0f7c1ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for qpytorch 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

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