Skip to content

views

Read-only DGP views backing the edit free functions.

Each view wraps a fitted base DGP and overrides the minimal per-node surface (response / draw_noise / graph); fit/sample/ intervene are inherited from DGPMixin and correctly go THROUGH the view's overridden mechanisms — so views compose (set_form(scale_edge(base, ...), ...) etc.) and sampling an edited DGP honors the edit. Views never mutate the base DGP.

Parameter-uncertainty hook: all views override pick_parameters to first let the base pick (default: the base itself → the view works as-is for deterministic backends); when the base returns a PINNED draw (e.g. PyMCSCMDGP's posterior), the view returns a shallow copy of itself with the pinned base rebound, so the edit's overridden mechanisms evaluate on that parameter draw.