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.2.tar.gz (11.2 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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyect-0.1.2.tar.gz
  • Upload date:
  • Size: 11.2 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.2.tar.gz
Algorithm Hash digest
SHA256 916bd7a37546bb935e36d2c93f0c3a39668d5f80a0ae000c33ece439ee45c767
MD5 ae2ca9f8be1bddae5fcdc5c9a3a56699
BLAKE2b-256 e5b686c14cd8e3a28690476796dbef9c06bee365d7af5e0722197a670a6776ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyect-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf80cf45ed33cdc343d8aa2425c0ba0a81eb0ca55b6f962c7c75eaff2609aab4
MD5 345a678b43efae9665a4867c9e9fb182
BLAKE2b-256 d357d0eb8e6a3de27959251ca114c20daa01d7378094f878a2f6ceecaba98dd5

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