Skip to main content

Perform optimal transition coupling (OTC) in python.

Project description

pyotc

codecov

A python implementation 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: pyotc requires Python 3.10 or above.

2. Install from github

pip install git+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

pyotc-0.4.0.tar.gz (554.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyotc-0.4.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file pyotc-0.4.0.tar.gz.

File metadata

  • Download URL: pyotc-0.4.0.tar.gz
  • Upload date:
  • Size: 554.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyotc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 098ee12f64dff0e9ed6c0937e302b53a5936c002c10634bededc54b449d320cf
MD5 fd5878883c64253a4c9b3bfa0ac8a000
BLAKE2b-256 57ee9e481b4a55ed59694ba2f489bd7314e06bfc185418bfe3ac9da97502c427

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyotc-0.4.0.tar.gz:

Publisher: build_and_publish.yml on pyotc/pyotc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyotc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyotc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyotc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8118286ee5f20eff952b925a9b94e9f7ee6c2d992a84b3c8df6e12eee8ef080d
MD5 965e534dfe2ecd0ef206c2496464b325
BLAKE2b-256 cd6d625ba2ec61e192168a92d9d14df3047a86081ec6ddd551dfc7d80006b722

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyotc-0.4.0-py3-none-any.whl:

Publisher: build_and_publish.yml on pyotc/pyotc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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