Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Converting from NumPy array to list in mimic_explainer.py:_save() #566

Open
GraceBrigham opened this issue Jul 7, 2023 · 0 comments
Open

Comments

@GraceBrigham
Copy link

Problem: When using _save() in mimic_explainer.py to serialize my explainable model I ran into the TypeError "Object of type ndarray is not JSON serializable." My issue was that the classes parameter I used in the constructor was a ndarray and not a list.

Solution: In the future, it might be nice if ndarrays are automatically converted to lists to avoid the serialization error in the future.

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant