Skip to content

Commit

Permalink
caching is removed. Explanation is created each time explain method i…
Browse files Browse the repository at this point in the history
…s called
  • Loading branch information
raanan-rohekar committed Mar 5, 2024
1 parent 35227f3 commit 19cf80c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions causal_reasoning/cleann_explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ def explain(self, target_node_idx, max_set_size=None, max_range=None):
containing nodes having at most max_range distance on the graph from the target node.
:return: a list of minimal explanations (all explanations have the same size).
"""
if target_node_idx in self.results:
return self.results[target_node_idx]['explanations']

# learn a Graph if one haven't been learned already
if self.graph is None:
Expand Down

0 comments on commit 19cf80c

Please sign in to comment.