heatdist
Implementation of diffusion-based distances in torch.
from torchheat.heat_kernel import HeatKernelGaussian, HeatKernelKNN
import torch
data = torch.randn(100, 5)
# Heat kernel for a gaussian affinity matrix
heat_op = HeatKernelGaussian(sigma=1.0, t=1.0)
dist = heat_op.fit(data, dist_type="var") # ["var", "phate", "diff"]
# Heat kernel for a k-nearest neighbor affinity matrix
heat_op = HeatKernelKNN(k=5, t=1.0)
dist = heat_op.fit(data, dist_type="var") # ["var", "phate", "diff"]
Below is an example of distance matrices from a line embedded in two dimensions. The Euclidean distance between the two sets of points highlighted in green does not reflect the true distances on the one dimensional line.
Metadata
Release files for torchheat 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torchheat-0.2.0.tar.gz | 7.3 kB | Without provenance | Details for torchheat-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchheat-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for torchheat-0.2.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / torchheat-0.2.0.tar.gz
| Download URL | torchheat-0.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22d9838f5dfda7c0756c3e4d5ff12ede77c11b1823ffb26e05ab63ba7dd6333b
|
|
BLAKE2b-256 checksum How to use checksums |
6cd62ff623db053c89157003a1fcd4ce6ee38648eb3f83ee48fafcf570eb5c2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / torchheat-0.2.0-py3-none-any.whl
| Download URL | torchheat-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31a67b060888591e63b4d1a390978fe7192e501c5c7c7fe931a88c3853dafba2
|
|
BLAKE2b-256 checksum How to use checksums |
eb2c0a4cb0ea3f45580d92d7c86db480209d2ab9d5f5853a970d7bfd90460ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for torchheat 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.