Package ch.idsia.credici.inference
Class CausalInference<M,R extends ch.idsia.crema.factor.GenericFactor>
- java.lang.Object
-
- ch.idsia.credici.inference.CausalInference<M,R>
-
- Direct Known Subclasses:
CausalMultiVE
,CausalVE
,CredalCausalApproxLP
,CredalCausalVE
public abstract class CausalInference<M,R extends ch.idsia.crema.factor.GenericFactor> extends Object
Author: Rafael CabaƱas
-
-
Constructor Summary
Constructors Constructor Description CausalInference()
-
Method Summary
Modifier and Type Method Description Query
causalQuery()
Query
counterfactualQuery()
R
doQuery(int[] target, gnu.trove.map.TIntIntMap intervention)
R
doQuery(int target, gnu.trove.map.TIntIntMap intervention)
M
getInferenceModel(Query q)
abstract M
getInferenceModel(Query q, boolean simplify)
M
getModel()
R
probNecessity(int cause, int effect)
R
probNecessity(int cause, int effect, int trueState, int falseState)
R
probNecessityAndSufficiency(int cause, int effect)
R
probNecessityAndSufficiency(int cause, int effect, int trueState, int falseState)
R
probSufficiency(int cause, int effect)
R
probSufficiency(int cause, int effect, int trueState, int falseState)
R
query(int target)
R
query(int[] target)
R
query(int[] target, gnu.trove.map.TIntIntMap evidence)
R
query(int[] target, gnu.trove.map.TIntIntMap evidence, gnu.trove.map.TIntIntMap intervention)
R
query(int target, gnu.trove.map.TIntIntMap evidence)
R
query(int target, gnu.trove.map.TIntIntMap evidence, gnu.trove.map.TIntIntMap intervention)
abstract R
run(Query q)
-
-
-
Field Detail
-
model
protected M model
-
target
protected int[] target
-
-
Method Detail
-
run
public abstract R run(Query q) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int[] target, gnu.trove.map.TIntIntMap evidence, gnu.trove.map.TIntIntMap intervention) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int target) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int[] target) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int target, gnu.trove.map.TIntIntMap evidence) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int[] target, gnu.trove.map.TIntIntMap evidence) throws InterruptedException
- Throws:
InterruptedException
-
query
public R query(int target, gnu.trove.map.TIntIntMap evidence, gnu.trove.map.TIntIntMap intervention) throws InterruptedException
- Throws:
InterruptedException
-
doQuery
public R doQuery(int target, gnu.trove.map.TIntIntMap intervention) throws InterruptedException
- Throws:
InterruptedException
-
doQuery
public R doQuery(int[] target, gnu.trove.map.TIntIntMap intervention) throws InterruptedException
- Throws:
InterruptedException
-
getModel
public M getModel()
-
causalQuery
public Query causalQuery()
-
counterfactualQuery
public Query counterfactualQuery()
-
probNecessity
public R probNecessity(int cause, int effect) throws InterruptedException
- Throws:
InterruptedException
-
probNecessity
public R probNecessity(int cause, int effect, int trueState, int falseState) throws InterruptedException
- Throws:
InterruptedException
-
probSufficiency
public R probSufficiency(int cause, int effect) throws InterruptedException
- Throws:
InterruptedException
-
probSufficiency
public R probSufficiency(int cause, int effect, int trueState, int falseState) throws InterruptedException
- Throws:
InterruptedException
-
probNecessityAndSufficiency
public R probNecessityAndSufficiency(int cause, int effect) throws InterruptedException, ExecutionControl.NotImplementedException
-
probNecessityAndSufficiency
public R probNecessityAndSufficiency(int cause, int effect, int trueState, int falseState) throws InterruptedException, ExecutionControl.NotImplementedException
-
-