MarcelRobeer / explabox

Explore/examine/explain/expose your model with the explabox!
https://explabox.readthedocs.io
GNU Lesser General Public License v3.0
14 stars 0 forks source link

Deprecation warning for numpy.str #3

Closed mpbron closed 2 years ago

mpbron commented 2 years ago

Summary of bug

When running local explanation like LIME via box.expain.explain_prediction(...) the following DeprecationWarning is thrown:

venv/lib/python3.9/site-packages/genbase/utils.py:75: DeprecationWarning:

`np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Environment information

Reproducing the bug

Steps to reproduce the behavior:

from explabox import Explabox
data =  ...
model  = ...
box = Explabox(data=data, model=model)
box.explain.explain_prediction("Some sentence you want to explain")