Skip to content
New issue

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

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

Already on GitHub? Sign in 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!

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

No branches or pull requests

1 participant