Skip to content

Commit

Permalink
base influence: remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin-Picard committed Feb 16, 2024
1 parent 727e5e4 commit f1a360f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions deel/influenciae/common/base_influence.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,30 +269,6 @@ def compute_influence_vector(

return inf_vect_ds

@abstractmethod
def _estimate_individual_influence_values_from_batch(
self,
train_samples: Tuple[tf.Tensor, ...],
samples_to_evaluate: Tuple[tf.Tensor, ...]
) -> tf.Tensor:
"""
Estimate the (individual) influence scores of a single batch of samples with respect to
a batch of samples belonging to the model's training dataset.
Parameters
----------
train_samples
A single batch of training samples (and their target values).
samples_to_evaluate
A single batch of samples of which we wish to compute the influence of removing the training
samples.
Returns
-------
A tensor containing the individual influence scores.
"""
raise NotImplementedError()

def estimate_influence_values_in_batches(
self,
dataset_to_evaluate: tf.data.Dataset,
Expand Down

0 comments on commit f1a360f

Please sign in to comment.