Skip to content

Interface: ScmCounterfactualRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ScmCounterfactualRequest

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

Request to answer a counterfactual over a fully declared SCM (level-3 structure supplied by the caller — the hierarchy’s price).

assignments: StructuralAssignmentDto[]

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

Deterministic structural assignments.


evidence: Record<string, number>

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

The FACTUAL evidence (what was actually observed).


exogenous: ExogenousNoiseDto[]

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

Exogenous noise variables with their distributions.


interventions: Record<string, number>

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

The hypothetical interventions do(V = v).


query: string

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

The variable whose counterfactual distribution is queried.