Hi!
I wanted to practice gradient descent with Python, so I created a practice notebook with a different, larger training set. I referenced the lab solution code and wrote my own, but for some reason my output is ‘nan’. It’s because the numbers being outputted are WAY too large. In the screenshot, you can see I printed out the cost history. And the numbers are huge? This can’t be right.
I’ve looked over my code so many times, and compared to the lab’s code – I can’t figure out WHY it is outputting such large numbers for both cost values and parameter values.