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