David Lotts

Results 2 issues of David Lotts

The reference is missing examples of: continue pass You do have break and loop-else. This is an awesome thing, BTW.

https://github.com/mGalarnyk/datasciencecoursera/blob/2ab7696850bca573bcb63f11697ea23be3ed4ebf/Stanford_Machine_Learning/Week2/Assignment/Python/computeCost.py#L25 Matlab/Octave: J = (1/(2*m)) *sum( (((X*theta)-y).^2)) Python : s = np.power(( X.dot(theta) - np.transpose([y]) ), 2) J = (1.0/(2*m)) * s.sum( axis = 0 ) They look equivalent except...