estimates parameters of a Gaussian distribution using the data in X
Find the best threshold (epsilon) to use for selecting outliers
Collaborative filtering cost function
implements the gradient (without regularization)
adds regularization to computations of the cost function, J
implements regularization for the gradient