2023-01-30 14:14:52 |
Olivier Gayot |
description |
tpot fails its autopkgtest suite when run against numpy 1.24+
File "/usr/lib/python3/dist-packages/tpot/builtins/one_hot_encoder.py", line 216, in OneHotEncoder
def __init__(self, categorical_features='auto', dtype=np.float,
^^^^^^^^
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'
A fix [1] was merged in Debian but there is no upload yet.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027205 |
tpot fails its autopkgtest suite when run against numpy 1.24+
File "/usr/lib/python3/dist-packages/tpot/builtins/one_hot_encoder.py", line 216, in OneHotEncoder
def __init__(self, categorical_features='auto', dtype=np.float,
^^^^^^^^
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'
numpy.float was removed [2] from numpy 1.24
A fix [1] was merged in Debian but there is no upload yet.
[1] https://salsa.debian.org/science-team/tpot/-/commit/b7989129ccecae0b9cff9a3fa5b863a0d551815e
[2] https://numpy.org/doc/stable/release/1.24.0-notes.html#expired-deprecations |
|