Interface: CounterfactualRequest
@kortexya/reasoninglayer / CounterfactualRequest
Interface: CounterfactualRequest
Section titled “Interface: CounterfactualRequest”Defined in: src/types/causal.ts:153
Request to evaluate a counterfactual query.
Remarks
Section titled “Remarks”Uses Pearl’s three-step algorithm: abduction, action, prediction.
Properties
Section titled “Properties”antecedentValue
Section titled “antecedentValue”antecedentValue:
unknown
Defined in: src/types/causal.ts:155
Antecedent value: what we are hypothetically setting the variable to.
antecedentVariable
Section titled “antecedentVariable”antecedentVariable:
string
Defined in: src/types/causal.ts:157
Antecedent: the variable to intervene on in the counterfactual world.
consequentVariable
Section titled “consequentVariable”consequentVariable:
string
Defined in: src/types/causal.ts:159
Consequent: the variable whose value we want to predict.
evidence
Section titled “evidence”evidence:
Record<string,unknown>
Defined in: src/types/causal.ts:161
Evidence: observed variable values.