我试图使用 保存我的解释shap
器类型,但我收到错误:。我的代码:DeepExplainer
pickle.dump
can't pickle SwigPyObject objects
my_shap_explainer = DeepExplainer(my_model, background)
pickle.dump(my_shap_explainer, my_file)
TypeError: can't pickle SwigPyObject objects
将此类存储到文件的最佳方法是什么?