|
Return the family component of the marginal log-likelihood for a BN
family from counts and prior parameters.
Called as family_llh(interval,ri,data,prior)
- Parameters:
interval (int) - The distance between successive child values in data
ri (int) - The number of values for the child variable of the CPT
data (List of ints/floats) - The data for the CPT (in the standard ordering)
prior (List of ints/floats) - The Dirichlet parameters. prior[i] is the Dirichlet
parameter for data[i]
- Returns: Float
- The family component of the marginal log-likelihood
|