In order to make the gradient decent faster ,we can use this formular . 

Andrew Ng 's machine learning lecture note (3)
After updating the xi ,we could use gradient decent faster. 

NOTICE : If we want to predict some other values , the input use the above normalization method.

In order to know whether our gradient decent is working or not. We can plot the cost function and interation is the x axis. every iteration should lead to the cost function going down. If it doesn't go down, maybe the alpha(For error square cost function) is too big .

相关文章:

  • 2021-11-10
  • 2021-12-07
  • 2021-12-21
  • 2022-12-23
  • 2021-07-19
  • 2021-07-21
  • 2021-07-05
  • 2021-05-01
猜你喜欢
  • 2021-05-11
  • 2021-09-09
  • 2022-01-22
  • 2021-10-22
  • 2021-08-03
  • 2021-05-23
  • 2021-04-12
相关资源
相似解决方案