Advanced Optimization, Conjugrate, Bfgs.
find the optimal value of theta for you. Let me actually show you what this looks like in Octave. So I’ve written this cost function of theta function exactly as we had it on the previous line. It computes J-val which is the cost function. And it computes the gradient with the two elements being