源码:https://github.com/cheesezhe/Coursera-Machine-Learning-Exercise/tree/master/ex5 Introduction: In this exercise, you will implement regularized linear regression and use it to study models with different bias-variance properties. 1. Regularized Lin…
1. hypothsis 2. cost function: 3. Goal: 4. Gradient descent algorithm repeat until convergence { (for j = 0 and j = 1) } note: simultaneous update α:learning rate if α is too small, gradient descent can be slow. if α is too large, gradient descent ca…