摘要: 题目给出的数据是一组2-8岁男童的身高。x是年龄,y是身高。样本数m=50. 使用gradient descent来做线性回归。 step1:数据准备。 加载数据: >> x=load('ex2x.dat'); >> y=load('ex2y.dat'); 可视化数据: 效果如下: 我们将模型设定为 阅读全文
posted @ 2016-07-12 11:25 Miller1991 阅读(276) 评论(0) 推荐(0) 编辑