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.3.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.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyect-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1f293899b9486e774c76329ef31a22e396c4e781688f2bdfca2adafeb066f395
MD5 93c35ee9e3a90cd993b24d111212c887
BLAKE2b-256 040d5614e0b1042dd18a07652d29324d11f9ff88f6dd23b2cd83ba7f7d9e35b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyect-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a883b6753cb09b4615f10e2242b6700f290a80f731fe15136ebe1dd7f3c529b
MD5 df26237245ddf0b5bf09c1af65a2e4f4
BLAKE2b-256 145e1ce18b7c0803ceada8631ba008e7eff4eafe42105d8877d6da26d8819ec2

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