scikit-learn-contrib / MAPIE

A scikit-learn-compatible module to estimate prediction intervals and control risks based on conformal predictions.
https://mapie.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

Replace assert np.array_equal by np.testing.assert_array_equal in all Mapie unit tests #473

Open BaptisteCalot opened 1 week ago

BaptisteCalot commented 1 week ago

Is your documentation request related to a problem? Please describe.

The error message returned by the function np.testing.assert_array_equal is very specific, whereas assert np.array_equal only captures a generic message like 'AssertionError'

Describe the solution you'd like A clear and concise description of what you want to be documented.