Expand description
Observational and interventional batch sampling.
SPDX-License-Identifier: MIT OR Apache-2.0
Functionsยง
- refuse_
cross_ family_ soft - Soft overrides must share noise semantics with the fitted mechanism. Reusing a Discrete Uniform(0,1) residual as an additive Gaussian U (or the reverse) is not a well-defined counterfactual.
- sample_
conditional_ interventional - Sample under interventions conditioned on observed node values.
- sample_
interventional - Sample under interventions (compiled to an overlay; model is not cloned).
- sample_
observational - Sample
n_rowsobservational draws from a fitted model. - sample_
observational_ into - Sample observational draws into a caller-owned column-major buffer.
- sample_
posterior_ predictive - Posterior-predictive interventional sampling: for each coefficient draw block,
refresh
LinearGaussianslots then sample.draw_updatermutates slots in place. - sample_
stochastic - Draw values from a stochastic intervention policy into
out. - sample_
structural_ with_ overlay - Structural path: sample noise then evaluate with overlays applied post-hoc for hard sets.
- sample_
with_ overlay - Core ancestral sampler with overlay.
- sample_
with_ overlay_ into - Ancestral sample into a caller-owned column-major buffer.
- soft_
to_ slot - Convert a soft
MechanismOverrideinto a concrete mechanism slot.