Skip to content

deblais 0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 15:08
· 1 commit to main since this release

Added

  • Costs |x - y|^p: the option p (Options::p in C++, p= in Python) solves the transport for any power of the Euclidean distance, p > 0, with every method (closed form on the line for p >= 1). The plan, its cost, the potentials and certify use the same exponent; Plan::p records it. The PyTorch gradients follow the exponent.
  • The default stays p = 2, and only p = 2 keeps the single precision filter of the pricing: its speed is unchanged.

Notes

  • The automatic mode is tuned for p = 2. For another exponent it is slower than the plain simplex up to a few thousand points, and the best method changes from one problem to the next: run tune once on a typical problem and reuse its options. Measurements in the documentation.
  • wasserstein2 keeps the squared distance and refuses another p.

Full changelog: v0.1.0...v0.2.0