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.2.1.tar.gz
(53.7 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.2.1-py3-none-any.whl
(53.3 kB
view details)
File details
Details for the file msw-0.2.1.tar.gz.
File metadata
- Download URL: msw-0.2.1.tar.gz
- Upload date:
- Size: 53.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7be9d0b9260633633f306f41d1932af63e1e6e1d1acdc26efc0d03c17292634
|
|
| MD5 |
6cc1f339f4be204c26767cf3576a5a5a
|
|
| BLAKE2b-256 |
5aaafb9c69bcd4e082d61449d324a16e237d50aec154a1b899e0836d77126359
|
File details
Details for the file msw-0.2.1-py3-none-any.whl.
File metadata
- Download URL: msw-0.2.1-py3-none-any.whl
- Upload date:
- Size: 53.3 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 |
fcacfbc878ed11afbd68f31c55da05b54502cb9a3b46983132758dc39b8fa0ab
|
|
| MD5 |
62362d5f297a42aad24d7f5c7432d401
|
|
| BLAKE2b-256 |
97d45421f2b47560c3d62ef808038cdd8b3f9fbc97b8e7321b258f80262dd9bc
|