def normal_log_q ( self , z ) : means , scale = self . get_means_and_scales ( ) return ss . norm . logpdf ( z , loc = means , scale = scale )
log normalize distribution python
The unnormalized log posterior components for mean - field normal family ( the quantity we want to approximate ) RAO - BLACKWELLIZED!
def normal_log_q(self,z):
        """
        The unnormalized log posterior components for mean-field normal family (the quantity we want to approximate)
        RAO-BLACKWELLIZED!
        """             
        means, scale = self.get_means_and_scales()
        return ss.norm.logpdf(z,loc=means,scale=scale)