[MRG] Distance calculation bug solve by ncassereau · Pull Request #306 · PythonOT/POT
Types of changes
- Docs change / refactoring / dependency upgrade
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to change)
Motivation and context / Related issue
Resolves #305, also allows the usage of weights (otherwise wminkowski is not a valid metric contrary to what POT doc suggests)
How has this been tested (if it applies)
Tests ran locally without a hitch
Checklist
- The documentation is up-to-date with the changes I made.
- I have read the CONTRIBUTING document.
- All tests passed, and additional code has been covered with new tests.