Class ArgumentationBasedCounterfactualReasoner
java.lang.Object
org.tweetyproject.causal.reasoner.AbstractCausalReasoner
org.tweetyproject.causal.reasoner.AbstractArgumentationBasedCausalReasoner
org.tweetyproject.causal.reasoner.ArgumentationBasedCounterfactualReasoner
- All Implemented Interfaces:
ModelProvider<PlFormula, CausalKnowledgeBase, CausalInterpretation>,QualitativeReasoner<CausalKnowledgeBase, PlFormula>,Reasoner<Boolean, CausalKnowledgeBase, PlFormula>
public class ArgumentationBasedCounterfactualReasoner
extends AbstractArgumentationBasedCausalReasoner
Implements the approach to argumentation-based counterfactual reasoning as described in
Lars Bengel, Lydia Blümel, Tjitze Rienstra and Matthias Thimm, 'Argumentation-based Causal and Counterfactual Reasoning', 1st International Workshop on Argumentation for eXplainable AI (ArgXAI), (2022)
Lars Bengel, Lydia Blümel, Tjitze Rienstra and Matthias Thimm, 'Argumentation-based Causal and Counterfactual Reasoning', 1st International Workshop on Argumentation for eXplainable AI (ArgXAI), (2022)
- Author:
- Lars Bengel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConclusions(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Computes the set of all literal expressions that can be concluded from the causal knowledge base and observationsgetInducedTheory(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Constructs a logical argumentation framework from a given causal knowledge base and some observationsgetModels(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Computes the set of all interpretations that can be concluded from the causal knowledge base and observationsbooleanquery(CausalKnowledgeBase cbase, CounterfactualStatement statement) Evaluates the given counterfactual statement against the causal knowledge base.Methods inherited from class org.tweetyproject.causal.reasoner.AbstractArgumentationBasedCausalReasoner
getInducedTheoryMethods inherited from class org.tweetyproject.causal.reasoner.AbstractCausalReasoner
getConclusions, getConclusions, getConclusions, getModel, getModel, getModel, getModel, getModels, getModels, getModels, isInstalled, query, query, query, query
-
Constructor Details
-
ArgumentationBasedCounterfactualReasoner
public ArgumentationBasedCounterfactualReasoner()
-
-
Method Details
-
getInducedTheory
public DungTheory getInducedTheory(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Description copied from class:AbstractArgumentationBasedCausalReasonerConstructs a logical argumentation framework from a given causal knowledge base and some observations- Specified by:
getInducedTheoryin classAbstractArgumentationBasedCausalReasoner- Parameters:
cbase- some causal knowledge baseobservations- some logical formulae representing the observations of causal atomsinterventions- a set of interventions on causal atoms- Returns:
- the argumentation framework induced from the causal knowledge base and the observations
-
query
Evaluates the given counterfactual statement against the causal knowledge base.- Parameters:
cbase- the causal knowledge basestatement- the counterfactual statement- Returns:
trueif the statement holds,falseotherwise
-
getModels
public Collection<CausalInterpretation> getModels(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Description copied from class:AbstractCausalReasonerComputes the set of all interpretations that can be concluded from the causal knowledge base and observations- Overrides:
getModelsin classAbstractArgumentationBasedCausalReasoner- Parameters:
cbase- some causal knowledge baseobservations- some logical formulae over atoms of the causal knowledge baseinterventions- a set of interventions on causal atoms- Returns:
- the set of interpretations that can be concluded from the causal knowledge base
-
getConclusions
public Collection<PlFormula> getConclusions(CausalKnowledgeBase cbase, Collection<PlFormula> observations, Map<Proposition, Boolean> interventions) Description copied from class:AbstractCausalReasonerComputes the set of all literal expressions that can be concluded from the causal knowledge base and observations- Overrides:
getConclusionsin classAbstractCausalReasoner- Parameters:
cbase- some causal knowledge baseobservations- some logical formulae over atoms of the causal knowledge baseinterventions- a set of interventions on causal atoms- Returns:
- the set of expressions that can be concluded from the given knowledge
-