Description Usage Arguments Value References Examples
This is essentially a wrapper function of transport. It has the advantage of allowing more general input objects, such as images or matrices, without the user having to manually convert these objects.
1 |
A |
One of the following: A matrix, representing an image; A file name containing an image; A wpp-object. |
B |
One of the following: A matrix, representing an image; A file name containing an image; A wpp-object. |
p |
A positive real number specifying the power of the Wasserstein distance. |
sampling |
A boolean specifying whether a stochastic approximation (Sommerfeld et al., 2019) should be used to approximate the distance. |
S |
A positive integer specifying the number of samples drawn in the stochastic approximation. |
R |
The number of repetitions averaged over in the stochastic approximation. |
A number specifying the computed p-Wasserstein distance.
M Sommerfeld, J Schrieber, Y Zemel, and A Munk (2019). Optimal transport: Fast probabilistic approximations with exact solvers. Journal of Machine Learning Research 20(105):1–23.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.