-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add estimation of context-sensitive probability of sufficiency to the…
… explainable reasoning module (#536) * rename consequent_differs to consequent_neq * add consequent_eq * lint * added sufficiency_intervention * generalized hints for sufficiency_intervention * add event_dim to indices_of within sufficiency intervention * added antecedents in sufficiency_intervention * test sufficiency_intervention with split * format, lint * expanded antecedents in scribbles.ipynb * fixed sufficiency_intervention and test thereof * consequents to consequents_nec in scribbles * working eq and neq * fixed the event dim bug * added consequent_eq_neq * format lint * added naming to do within components WIP * debugged consequent_eq_neq to handle upstream interventions * generalizing across event shapes WIP * debugging events WIP * generalizing to SearchForNS WIP * working forest fire example * extract distros from the ff example * state before reverting * reverted on sufficiency_intervention * reinstate counterfactual * reverted on SplitSubsets * simplified test consequent eq_neq, moving on * SearchForNS into explainable * test SearchForNS * tests passing * revert counterfactual * pulled code changes from the tutorial branch * removed outdated comment
- Loading branch information
1 parent
71b2e4f
commit 8ad5b56
Showing
5 changed files
with
531 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from .components import random_intervention # noqa: F401 | ||
from .components import ExtractSupports, undo_split # noqa: F401 | ||
from .explanation import SearchForExplanation, SplitSubsets # noqa: F401 | ||
from .components import ( # noqa: F401 | ||
ExtractSupports, | ||
random_intervention, | ||
sufficiency_intervention, | ||
undo_split, | ||
) | ||
from .explanation import SearchForExplanation, SearchForNS, SplitSubsets # noqa: F401 | ||
from .preemptions import Preemptions # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.