Gradient descent algorithm won't converge

前端 未结 6 1163
轻奢々
轻奢々 2021-02-06 05:42

I\'m trying to write out a bit of code for the gradient descent algorithm explained in the Stanford Machine Learning lecture (lecture 2 at around 25:00). Below is the implementa

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 06:16

    I have experienced the same problem (albeit in Java) because my learning rate was too big.
    For short, I was using α = 0.001 and I had to push it to 0.000001 to see actual convergence.

    Of course these values are linked to your dataset.

提交回复
热议问题