Perform optimal transition coupling (OTC) in python.
Project description
pyotc
A python implementations of optimal transport coupling algorithms.
Documentation
Find sphinx documentation here.
Installation
We expect pyotc to be pip-installable across all platforms.
1. Install from pypi (Recommended)
pip install pyotc
- Note:
pyotcrequires Python 3.10 or above.
2. Install from github
pip install https://github.com/pyotc/pyotc.git
3. Install for Development
We test in venvs provided by uv via nox. It's helpful, but not strictly necessary to do the same.
git clone https://github.com/pyotc/pyotc.git
cd pyotc
pip install -e .
uv workflow
Install the uv tool. Then
git clone https://github.com/pyotc/pyotc.git
cd pyotc
uv sync
uv pip install -e .
To verify your installation, run
uv run pytest
Run Tests
With a uv setup one can simply
uv run pytest
Otherwise, in pip installed context with deps met, pytest should behave as expected.
Contributing
Guidelines for contribution to pyotc are provided in CONTRIBUTING.md.
Changelog
A summary of changes and guide to versioning are recoreded in CHANGELOG.md.
Citing this Repository
If you wish to cite our work, please use the following BibTeX code:
@article{yi2025alignment,
title={Alignment and comparison of directed networks via transition couplings of random walks},
author={Yi, Bongsoo and O'Connor, Kevin and McGoff, Kevin and Nobel, Andrew B},
journal={Journal of the Royal Statistical Society Series B: Statistical Methodology},
pages={qkae085},
year={2024},
doi = {10.1093/jrsssb/qkae085}
}
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
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 pyotc-0.3.3.tar.gz.
File metadata
- Download URL: pyotc-0.3.3.tar.gz
- Upload date:
- Size: 552.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9eedfddfd05ea302e948b3010cf3023a29dccab2055b2b0b294ecea0c1d71ad
|
|
| MD5 |
9cdef2a39e56cb0ff45a5e09a66cea3a
|
|
| BLAKE2b-256 |
c2eec052120d96ad75c69409d9f8f2728b4c1afcac2c8bbc02824b4629ae85bd
|
Provenance
The following attestation bundles were made for pyotc-0.3.3.tar.gz:
Publisher:
build_and_publish.yml on pyotc/pyotc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyotc-0.3.3.tar.gz -
Subject digest:
e9eedfddfd05ea302e948b3010cf3023a29dccab2055b2b0b294ecea0c1d71ad - Sigstore transparency entry: 1246248814
- Sigstore integration time:
-
Permalink:
pyotc/pyotc@a2f88e748976bf53f71147569a2af4cad0f4e4d0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/pyotc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@a2f88e748976bf53f71147569a2af4cad0f4e4d0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyotc-0.3.3-py3-none-any.whl.
File metadata
- Download URL: pyotc-0.3.3-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e7c3b78c3bb8216dc4a4aa727172ada534e63ebc18050e8669eefbacd7dfc8
|
|
| MD5 |
af3487a4237003833b1079d75e841a02
|
|
| BLAKE2b-256 |
89377d2e1b6d83d8b668595a82ff950eb27956f78f06cb01d263d6500075bf68
|
Provenance
The following attestation bundles were made for pyotc-0.3.3-py3-none-any.whl:
Publisher:
build_and_publish.yml on pyotc/pyotc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyotc-0.3.3-py3-none-any.whl -
Subject digest:
d8e7c3b78c3bb8216dc4a4aa727172ada534e63ebc18050e8669eefbacd7dfc8 - Sigstore transparency entry: 1246248820
- Sigstore integration time:
-
Permalink:
pyotc/pyotc@a2f88e748976bf53f71147569a2af4cad0f4e4d0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/pyotc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@a2f88e748976bf53f71147569a2af4cad0f4e4d0 -
Trigger Event:
release
-
Statement type: