MSW
Multi-scale sliced Wasserstein two-sample tests for stationary image distributions.
Install
pip install msw
Quickstart
import torch, msw
A = torch.rand(64, 3, 32, 32)
B = torch.rand(64, 3, 32, 32)
r = msw.test(A, B)
print(r.T, r.p) # statistic, exact p-value
print(r.diagnose())
d, lo, hi = msw.distance(A, B) # distance with 95% CI
More: examples/quickstart.py.
MIT license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
msw-0.3.0.tar.gz
(58.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
msw-0.3.0-py3-none-any.whl
(58.2 kB
view details)
File details
Details for the file msw-0.3.0.tar.gz.
File metadata
- Download URL: msw-0.3.0.tar.gz
- Upload date:
- Size: 58.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e823aa646380d2c8c5893dfda1e457986b3300b1ba812818bbbf29091e1fbbe
|
|
| MD5 |
c980c9acde5481e48bb53bb3122b8099
|
|
| BLAKE2b-256 |
011d5dc20fd9e2ca5792a6d4ae1c902df84155a02f0eee4e437e846f04514b76
|
File details
Details for the file msw-0.3.0-py3-none-any.whl.
File metadata
- Download URL: msw-0.3.0-py3-none-any.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f3e0cf9487a0f9c8797fab19f30ce66d2778eee793372fdcec43a7138f920ce
|
|
| MD5 |
275f51296e562d0ba5b45a28f57adec8
|
|
| BLAKE2b-256 |
b5a2831cb3162e6c0dd5053bb1df2583d447c2a55532b912ed96d8687411f32e
|