scikit-learn-contrib / DESlib

A Python library for dynamic classifier and ensemble selection
BSD 3-Clause "New" or "Revised" License
480 stars 106 forks source link

Fixing compatibility with python 3.7.2 #138

Closed Menelau closed 5 years ago

Menelau commented 5 years ago

Changing the test function, def test_label_encoder_base() to use np.array_equal instead of np.equal to be compatible with Python 3.7.2

The function np.equal is giving the following error when updated to Python 3.7.2:

TypeError: ufunc 'equal' did not contain a loop with signature matching types dtype('<U5') dtype('<U5') dtype('bool')