Skip to content

Commit

Permalink
Captum interface and SimilarityInfluence
Browse files Browse the repository at this point in the history
  • Loading branch information
gumityolcu committed Jun 14, 2024
1 parent 0ee06fe commit 9767b30
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 92 deletions.
43 changes: 0 additions & 43 deletions src/explainers/aggregators/aggregators.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/explainers/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from typing import Optional, Union
from typing import List, Optional, Union

import torch

Expand All @@ -23,7 +23,7 @@ def __init__(
self.model.to(dev)

@abstractmethod
def explain(self, test: torch.Tensor, **kwargs):
def explain(self, test: torch.Tensor, targets: Union[List[int], torch.Tensor, None], **kwargs):
raise NotImplementedError

@abstractmethod
Expand Down
47 changes: 0 additions & 47 deletions tests/explainers/aggregators/test_aggregators.py

This file was deleted.

0 comments on commit 9767b30

Please sign in to comment.