Below you will find pages that utilize the taxonomy term “Hack”
Posts
Computing Log Normal for Isotropic Gaussians
Consider a matrix $\mathbf{X}$ with rows of datapoints $\mathbf{x_i}$ which are $(n, d)$. The matrix $\mathbf{M}$ is made up of the $\boldsymbol{\mu}_j$ of $k$ different Gaussian components. The task is to compute the log probability of each of these $k$ components for all $n$ data points. In [1]: import theano
import theano.tensor as T
import numpy as np
import time
X = T.matrix('X')
M = T.