You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pt5jvslni/Chapter5/线性回归算法流程.md

294 B

5.3 线性回归算法流程

我们最终的目的是通过训练出来的线性回归模型对测试集数据进行预测,算法实现流程如下:

  • 1.将x0=1加入训练数据
  • 2.使用正规方程解求得参数
  • 3.将x0=1加入测试数据
  • 4.对测试集数据进行预测