Skip to main content

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.0.tar.gz (53.0 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.2.0-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file msw-0.2.0.tar.gz.

File metadata

  • Download URL: msw-0.2.0.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for msw-0.2.0.tar.gz
Algorithm Hash digest
SHA256 34f98c045d66a2adb7cb718b77c36d0a7433fcbfcb32a75317b53e3566a69455
MD5 87ac4225391baa6ee878834b70199041
BLAKE2b-256 9a52b421f6c9f0e97a5a2814a2e2bcf0c87c005a08e9362fcf7508f8ae77bf7b

See more details on using hashes here.

File details

Details for the file msw-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: msw-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 52.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6b38a6a7c651ab2500006c7c3a5cc70a4282cd22233d009b99a3efe2710db8
MD5 245e4d0f714ebf6d59cf31956b7a2346
BLAKE2b-256 26f41dca8f32cddb3b08293a62599e96e7242cdcf2a1ba9b4490153b23e000d1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.0

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