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.3.0.tar.gz (58.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.3.0-py3-none-any.whl (58.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msw-0.3.0.tar.gz
  • Upload date:
  • Size: 58.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.3.0.tar.gz
Algorithm Hash digest
SHA256 7e823aa646380d2c8c5893dfda1e457986b3300b1ba812818bbbf29091e1fbbe
MD5 c980c9acde5481e48bb53bb3122b8099
BLAKE2b-256 011d5dc20fd9e2ca5792a6d4ae1c902df84155a02f0eee4e437e846f04514b76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msw-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 58.2 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f3e0cf9487a0f9c8797fab19f30ce66d2778eee793372fdcec43a7138f920ce
MD5 275f51296e562d0ba5b45a28f57adec8
BLAKE2b-256 b5a2831cb3162e6c0dd5053bb1df2583d447c2a55532b912ed96d8687411f32e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.1

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