aschuma

ML::03

Sep 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Gradient Descent
  2. ----------------
  3.  
  4. Goal: Estimate the parameters in the hypothesis function.
  5.  
  6. The gradient descent algorithm: Iterative algorithm to find theta_0, theta_1 so that J(theta_0,theta_1) has a local minimum.
  7.  
  8. repeat until convergence {
  9. theta_j := theta_j - ɑ * d J(theta_0, theta_1))
  10. ---------
  11. d theta_j
  12. }
  13. ------- derivative term ------------
  14.  
  15. j=0,1; parallel assignment within each iteration; ɑ is called "learning rate"; derivative term (Ableitung nach theta_j)
  16.  
  17. ɑ to small: algorithm slow
  18. ɑ to large: fail to converge or even diverge
Add Comment
Please, Sign In to add comment