Skip to content

Commit

Permalink
Removed global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
steveazzolin committed Mar 15, 2023
1 parent 05a820e commit 07ad7d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torch_explain/logic/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ def test_explanations(formulas: str, x: torch.Tensor, y: torch.Tensor, mask: tor
concept_list = [f"feature{i:010}" for i in range(x.shape[1])]

# get predictions using sympy
global class_predictions # remove
global class_predictions_filtered_by_pred
class_predictions = torch.zeros(len(formulas), x.shape[0])
for i , formula in enumerate(formulas):
explanation = to_dnf(formula)
Expand Down

0 comments on commit 07ad7d6

Please sign in to comment.