why gradient descent when we can solve linear regression analytically

后端 未结 4 1516
走了就别回头了
走了就别回头了 2021-01-29 22:16

what is the benefit of using Gradient Descent in the linear regression space? looks like the we can solve the problem (finding theta0-n that minimum the cost func) with analytic

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 23:13

    Other reason is that gradient descent is immediately useful when you generalize linear regression, especially if the problem doesn't have a closed-form solution, like for example in Lasso (which adds regularization term consisting on sum of absolute values of weight vector).

提交回复
热议问题