You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: