attributionpriors
attributionpriors copied to clipboard
cannot run this EG on pytorch
Traceback (most recent call last):
File "/home/qianying/PycharmProjects/DirectionalFeature-master/ES_ED_classfy/expected_gradient.py", line 161, in
**but actually when we enter into APExp.shap_values(net, inputs), the sparse_labels is default as None.
def shap_values(self, model, input_tensor, sparse_labels=None,k=1):
please help to solve this problem. thanks**