Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msw-0.1.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

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

Hashes for msw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc68e2a4c8c26ddc273f60c1c1a084a0eafd560d96f66a9d4cb70eab85d1896c
MD5 40bbbf4ad59fa25485b3d1221e7d3ec1
BLAKE2b-256 b198c1264625527094fc46dd832bad8df1af0f07d750b1f347f41ce6f8e54d78

See more details on using hashes here.

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

Hashes for msw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55d41d4921596796c39fdf97f0e3f6c846e2d9bbaf01938a57448c6566ae5152
MD5 f6a9a014a6279f4436263c56f0789310
BLAKE2b-256 9baed99647ce2dcd94e1e5f7ad780a1c4b93679b136f4caa755953399646fe00

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page