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

Fidelity metrics #6116

Merged
merged 14 commits into from
Dec 19, 2022
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 14, 2022
commit 336616939d2925ad4a5c217675b0edab08f8f8a0
2 changes: 0 additions & 2 deletions torch_geometric/explain/explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
ModelMode,
ThresholdConfig,
)

from torch_geometric.typing import EdgeType, NodeType



class Explainer:
r"""An explainer class for instance-level explanations of Graph Neural
Networks.
Expand Down
2 changes: 0 additions & 2 deletions torch_geometric/explain/explanation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy

from typing import Dict, List, Optional, Union

import torch
Expand All @@ -17,7 +16,6 @@ def available_explanations(self) -> List[str]:
"""Returns the available explanation masks."""
return [key for key in self.keys if key.endswith('_mask')]


def validate_masks(self, raise_on_error: bool = True) -> bool:
r"""Validates the correctness of the :class:`Explanation` masks."""
status = True
Expand Down