Optionalalpha?: number— Dirichlet smoothing parameter (default 1 = Laplace)
Total observation count across all cells.
Number of observations seen for a node+parent combination.
Get the current CPT estimate for a node.
Export all learned CPTs.
Get the credible interval for a CPT cell.
Uses the Beta distribution's normal approximation for large n.
Update the learner with a new observation.
— variable name
— comma-separated parent values ('' for root nodes)
— whether the node was anomalous
Online Dirichlet parameter learner for CPT updates.
Maintains Dirichlet priors for each CPT cell and updates them with new observations using closed-form moments (no MCMC needed).
Usage: