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 the following paper (and should be cited if you use this package):

TODO: Add Citation

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.1.tar.gz (11.1 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.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyect-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 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.1.tar.gz
Algorithm Hash digest
SHA256 b1547186e459fa694cac11f6c0a648b8f5e29aae5611513176f34147387006f5
MD5 0ddec898a0d9dc79be38bcb1dc83f132
BLAKE2b-256 46bb3084c22857cd0e1564a4185327ca1d43d6a4535aa94c3a7b964e6e6c9c36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyect-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b37038f058bb52aeb42913772a874890ca85b6eba225c85d00b1bd94f32603e5
MD5 7aace9988abd260524e8f68edb13029f
BLAKE2b-256 6a09001a813430485be9d998fd1230ed8961c3eafe74155ef2ddc218b2713f89

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