summaryrefslogtreecommitdiff
path: root/test/test_bregman.py
diff options
context:
space:
mode:
authorclecoz <camille.lecoz@laposte.net>2022-06-21 17:36:22 +0200
committerGitHub <noreply@github.com>2022-06-21 17:36:22 +0200
commit7c2a9523747c90aebfef711fdf34b5bbdb6f2f4d (patch)
tree453c481aaea14c3b5c915fd2cab53cec5d996043 /test/test_bregman.py
parente547fe30c59be72ae93c9f017786477b2652776f (diff)
[MRG] raise error if mass mismatch in emd2 (#386)
* Two lines added in the function emd2 to ensure that the distributions have the same mass (same as it already was in the function emd). * The same mass test has been moved inside the function f(b) to be compatible with emd2 with multiple b. * Test added. The function test_emd_dimension_and_mass_mismatch (in test/test_ot.py) has been modified to check for mass mismatch with emd2. * Add PR in releases.md * Merge and add PR in releases.md * Add name in contributors.md * Correction contribution in contributors.md * Move test on mass outside of functions f(b) * Update doc of emd and emd2 Co-authored-by: Camille Le Coz <clecoz@camelot.ipsl.polytechnique.fr> Co-authored-by: RĂ©mi Flamary <remi.flamary@gmail.com>
Diffstat (limited to 'test/test_bregman.py')
0 files changed, 0 insertions, 0 deletions