Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 15, 2024
1 parent da1a484 commit a5c5df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions torch_geometric/explain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ def __init__(self, mode: Union[ModelMode,

self.return_type = ModelReturnType(return_type)

if (prediction_threshold is None
and return_type == ModelReturnType.probs):
if (prediction_threshold is None
and return_type == ModelReturnType.probs):
prediction_threshold = 0.5
elif (prediction_threshold is None
elif (prediction_threshold is None
and return_type == ModelReturnType.raw):
prediction_threshold = 0.0
elif (prediction_threshold is None
elif (prediction_threshold is None
and return_type == ModelReturnType.log_probs):
prediction_threshold = -1.0
else:
Expand Down

0 comments on commit a5c5df7

Please sign in to comment.