Skip to content

Interface: CounterfactualRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Causal / CounterfactualRequest

Interface: CounterfactualRequest

Defined in: src/types/causal.ts:153

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:155

Antecedent value: what we are hypothetically setting the variable to.


antecedentVariable

antecedentVariable: string

Defined in: src/types/causal.ts:157

Antecedent: the variable to intervene on in the counterfactual world.


consequentVariable

consequentVariable: string

Defined in: src/types/causal.ts:159

Consequent: the variable whose value we want to predict.


evidence

evidence: Record<string, unknown>

Defined in: src/types/causal.ts:161

Evidence: observed variable values.