Skip to main content

Generalized computation of the weighted Euler characteristic transform using PyTorch.

Project description

pyECT

The Weighted Euler Characteristic Transform (WECT) is a mathematical tool used to analyze and summarize geometric and topological features of data. This package provides an efficient and simple implementation of the WECT using PyTorch.

This codebase accompanies this preprint. If you use this package, please include the following citation in your work:

@misc{cisewskikehe2025vectorizedcomputationeulercharacteristic,
      title={Vectorized Computation of Euler Characteristic Functions and Transforms}, 
      author={Jessi Cisewski-Kehe and Brittany Terese Fasy and Alexander McCleary and Eli Quist and Jack Ruder},
      year={2025},
      eprint={2511.03909},
      archivePrefix={arXiv},
      primaryClass={cs.CG},
      url={https://arxiv.org/abs/2511.03909}, 
}

Installation

To install pyECT, use pip:

pip install pyect 

Usage

Here's a simple example of how to use pyECT:

from pyect import WECT

# Example data and weight function
data = [...]  # Replace with your data
weight_function = lambda x: x**2  # Replace with your weight function

# Compute the WECT
wect = WECT(data, weight_function)
result = wect.compute()

print("WECT result:", result)

For more detailed examples, please see the /examples directory.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you'd like to change.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

pyect-0.1.8.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

pyect-0.1.8-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pyect-0.1.8.tar.gz.

File metadata

  • Download URL: pyect-0.1.8.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyect-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e622adc2ed1d26b0c195486398ede57eaab598b66087557e02e565cb664e0e4a
MD5 a16a89dfae5bfabca4b80dcd72ce96de
BLAKE2b-256 3769e0ba3581dc10277808c0265e5bcfecb179738a1345fbad8da6d3fd98826b

See more details on using hashes here.

File details

Details for the file pyect-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pyect-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyect-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 169f955e1eec955932d4037202bf06cc86914fbf938496ef378978fecb46fc20
MD5 3ca8a6744cac709fe3f600ca6979bce4
BLAKE2b-256 41af1cc82f34a3622aabc8049652ed5cf33070b2b3b2fef37cdfaeddccaf6470

See more details on using hashes here.

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