Empirical Bayes for Dynamic Bayesian Networks Using Generalized Variational Inference