Andrew Ng机器学习笔记#4

                                     Regularization

 

  1. Overfitting and the solution:

 

       2. Regularized cost function for linear regression:

 

     3. Regularized gradient descent and normal equation for linear regression:

 

    4.Regularized cost function for logistic regression:

 

    5.Regularized gradient descent for logistic regression: