Getting an Error in captum_explainer_hetero_link.py file. #7645
-
Hey guys, I was testing the captum_explainer_hetero_link.py (pytorch_geometric/examples/explain/captum_explainer_hetero_link.py) and I came across an error, I wanted to visualize the explanation and feature importance . I didn't make any changes to the code. I was hoping to use the same approach in my own heterogenous graph and explain it. The error I got:AttributeError Traceback (most recent call last) File c:\users\admin'\desktop\course exercises\xai miniproject.env\lib\site-packages\torch_geometric\data\hetero_data.py:137, in HeteroData.getattr(self, key) AttributeError: 'HeteroExplanation' has no attribute 'visualize_feature_importance' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am sorry, this example currently requires PyG installation from master. We just added the |
Beta Was this translation helpful? Give feedback.
I am sorry, this example currently requires PyG installation from master. We just added the
visualize_feature_importance
functionality forHeteroExplanation
there.