#NEWLINE# def gradients_Z_expectations( self , dL_dpsi0 , dL_dpsi1 , dL_dpsi2 , Z , variational_posterior , psi0 = None , psi1 = None , psi2 = None ) : #NEWLINE# #INDENT# '\n        Returns the derivative of the objective wrt Z, using the chain rule\n        through the expectation variables.\n        ' #NEWLINE# return self . psicomp . psiDerivativecomputations ( self , dL_dpsi0 , dL_dpsi1 , dL_dpsi2 , Z , variational_posterior ) [ 1 ]