MSW
Multi-scale sliced Wasserstein two-sample tests for stationary image distributions.
Install
pip install git+https://github.com/HaouchatY/MSW.git
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.1.0.tar.gz
(30.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.1.0-py3-none-any.whl
(33.5 kB
view details)
File details
Details for the file msw-0.1.0.tar.gz.
File metadata
- Download URL: msw-0.1.0.tar.gz
- Upload date:
- Size: 30.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 |
cc68e2a4c8c26ddc273f60c1c1a084a0eafd560d96f66a9d4cb70eab85d1896c
|
|
| MD5 |
40bbbf4ad59fa25485b3d1221e7d3ec1
|
|
| BLAKE2b-256 |
b198c1264625527094fc46dd832bad8df1af0f07d750b1f347f41ce6f8e54d78
|
File details
Details for the file msw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: msw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.5 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 |
55d41d4921596796c39fdf97f0e3f6c846e2d9bbaf01938a57448c6566ae5152
|
|
| MD5 |
f6a9a014a6279f4436263c56f0789310
|
|
| BLAKE2b-256 |
9baed99647ce2dcd94e1e5f7ad780a1c4b93679b136f4caa755953399646fe00
|