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.1.tar.gz (53.7 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.1-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

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

Hashes for msw-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a7be9d0b9260633633f306f41d1932af63e1e6e1d1acdc26efc0d03c17292634
MD5 6cc1f339f4be204c26767cf3576a5a5a
BLAKE2b-256 5aaafb9c69bcd4e082d61449d324a16e237d50aec154a1b899e0836d77126359

See more details on using hashes here.

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

Hashes for msw-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcacfbc878ed11afbd68f31c55da05b54502cb9a3b46983132758dc39b8fa0ab
MD5 62362d5f297a42aad24d7f5c7432d401
BLAKE2b-256 97d45421f2b47560c3d62ef808038cdd8b3f9fbc97b8e7321b258f80262dd9bc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

This release

0.2.1 This release

2 files

0.2.0

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