You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They look equivalent except the python has that np.transpose([y])
Why is it needed?
BTW, My Octave version of this cost function is the same as yours.
This is probably not a bug, but it is confusing. You've done a nice job of doing the Python version. It would be an improvement to at least comment on that. I really wanted to do the assignment in NumPy, but Ng's tutorial on Matlab was so easy to follow that I just did the Octave version. Now I can compare the syntax. A Tabla Rosa!
The text was updated successfully, but these errors were encountered:
datasciencecoursera/Stanford_Machine_Learning/Week2/Assignment/Python/computeCost.py
Line 25 in 2ab7696
Matlab/Octave:
Python :
They look equivalent except the python has that np.transpose([y])
Why is it needed?
BTW, My Octave version of this cost function is the same as yours.
This is probably not a bug, but it is confusing. You've done a nice job of doing the Python version. It would be an improvement to at least comment on that. I really wanted to do the assignment in NumPy, but Ng's tutorial on Matlab was so easy to follow that I just did the Octave version. Now I can compare the syntax. A Tabla Rosa!
The text was updated successfully, but these errors were encountered: