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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyect-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6b3d7cb57bd8b52d7259dbb778fe2bfcb1f2cf91851e5c1724bdc282592cabda
MD5 6736439aab3cef9fa736d355d5545b23
BLAKE2b-256 94002728b193d543413509dcf790dec44b3a36779d5e67170e286fc408cef81c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyect-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 546749f883afe3895f9e124d995f21977b6dd915313e18528f92dbb168b9cd84
MD5 f32a425898089eb64b2255236fdf07a2
BLAKE2b-256 374d23b4438f0516341d0d3340f7985ba65675a92bd0002eacfffbeeb4ed4ff1

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