Skip to content

Commit

Permalink
added explain_func_kwargs to custom_preprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
annahedstroem committed Dec 4, 2023
1 parent 65c0130 commit c40d1c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quantus/metrics/randomisation/smooth_mprt.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ def custom_preprocess(
return None

a_batch_chunks = []
for a_chunk in self.generate_explanations(model, x_batch, y_batch):
for a_chunk in self.generate_explanations(
model, x_batch, y_batch, **{**kwargs, **self.explain_func_kwargs}
):
a_batch_chunks.extend(a_chunk)
return dict(a_batch=np.asarray(a_batch_chunks))

Expand Down

0 comments on commit c40d1c6

Please sign in to comment.