【文件属性】:
文件名称:python线性回归
文件大小:5KB
文件格式:CSV
更新时间:2021-10-19 09:49:40
线性回归
TV radio newspaper sales
python 线性回归
Y_pred = l.predict(x_test)
plt.plot(range(len(Y_pred)),Y_pred,'red',linewidth=2.5,label='predict data')
plt.plot(range(len(y_test)),y_test,'green',label='test data')
plt.legend(loc=2)
plt.show()