GeezerVison is showing github.com — pyemd/CHANGELOG.rst at main · wmayner/pyemd
48 lines (28 loc) · 1.64 KB
File metadata and controls
48 lines (28 loc) · 1.64 KB
Copy raw file
Download raw file
OutlineEdit and raw actions
Deprecations and Removals
- Dropped support for Python 3.9-3.11. PyEMD 2.0 requires Python 3.12 or later.
- Removed C++ backend and
backend parameter. PyEMD 2.0 is a pure Python package using POT for all EMD computations.
- Simplified GitHub Actions workflows for pure Python package
- Added POT (Python Optimal Transport) as the default backend. All three functions (
emd(), emd_with_flow(), emd_samples()) now accept a backend parameter with values 'pot' (default, faster, multi-threaded) or 'cpp' (original C++ implementation). Both backends produce equivalent results.
- Fixed
emd_samples returning incorrect results with bins='auto' on NumPy 2.1+ when using integer input arrays. NumPy 2.1 introduced a constraint that histogram bin widths must be at least 1 for integer dtypes, which caused too few bins to be created for small datasets (e.g., emd_samples([1], [2]) incorrectly returned 0.0 instead of 0.5). (#68)
- Added
ninja to build dependencies to fix build failures when ninja is not installed system-wide.
- Updated README to document POT as the default backend, explain that PyEMD is now maintained as a wrapper around POT for backward compatibility, and recommend POT directly for new projects.
- Bumped minimum NumPy version from 1.9.0 to 1.15.0 (released 2018).