probability icon indicating copy to clipboard operation
probability copied to clipboard

A bug in Linear_Mixed_Effects_Models.ipynb

Open rasoolianbehnam opened this issue 1 year ago • 0 comments

There seems to be a bug in the model specification. in

tfd.MultivariateNormalDiag(
          loc=tf.zeros(num_students),
          scale_diag=self._stddev_students * tf.ones(num_students)),
tfd.MultivariateNormalDiag(
          loc=tf.zeros(num_instructors),
          scale_diag=self._stddev_instructors * tf.ones(num_instructors)),
tfd.MultivariateNormalDiag(
          loc=tf.zeros(num_departments),
          scale_diag=self._stddev_departments * tf.ones(num_departments)),

it seems that self._stddev_students, self._stddev_instructors, and self._stddev_students are not being tracked by the GradientTape and therefore not updated properly in the m step.

rasoolianbehnam avatar Mar 18 '24 18:03 rasoolianbehnam