Calculating New Parameters
Explore how to calculate new parameters in Quantum Bayesian Networks using conditional probabilities derived from measurement results. Understand the recursive training process that refines these parameters over multiple iterations to improve the model's accuracy and convergence. This lesson teaches you to implement automated parameter updates and monitor log-likelihood scores through iterative training for effective quantum inference.
Obtaining new parameter values from the results
The to_params function takes the results as a parameter in line 1. It returns a dictionary with the probabilities of being favored by a norm, given the set of values for the variables IsChild, Sex, and Survival in lines 12 to 21. These are conditional probabilities. We first filter all the states that have the specified values for the variables in line 5. From this set, we filter those states where the Norm has value 1 (filter_states(pop, QPOS_NORM, '1') ...