机器学习笔记5---Gradient descent for linear regression

来源:互联网 发布:数据通信与网络第四版 编辑:程序博客网 时间:2024/05/21 21:58





for linear regression has only one global, and no other local


and in octave ,you can use 


 theta = theta - alpha*(((X*theta-y)'*X)./m)';

and theta is a colume vector ,X is [x1 ,x2,x3...]  y is a colume vector

0 0
原创粉丝点击