Skip to main content

Generalized computation of the WECT 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.4.tar.gz (11.6 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.4-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyect-0.1.4.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for pyect-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0fb6aed03cb87390362efaa3ea828d01e3ccebc7d098bcc396e68f7b6b8660c7
MD5 9a8f68f5c8249d72c91c45629e41c00a
BLAKE2b-256 a291e573be7dfb18a30e8acc5366ff41b815d5df79a1f3cd39d4dbc0c76b1e3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyect-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for pyect-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13f615904fb1fe9dd72f69a83afc981f8d412d8cba71dfc308e73a30081c5858
MD5 c9bd1a8456f6e53321942cec3025d69f
BLAKE2b-256 d04a251e341fcec0bea3d11344918430e15c98714aa8e3b1c083609331f0a026

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