faridcher / ml-course

Starter code of Prof. Andrew Ng's machine learning MOOC in R statistical language
https://www.coursera.org/learn/machine-learning
172 stars 148 forks source link

Update ex1.R #9

Closed moritz4 closed 3 years ago

moritz4 commented 3 years ago

I think theta is supposed to be initialised to [0, 0], otherwise you don't get a cost of 32.07 for the below exercise:

https://github.com/faridcher/ml-course/wiki/1#223-computing-the-cost-

faridcher commented 3 years ago

Runs fine and converges successfully on my end!