Merge pull request #12 from wengJJ/master

Day 2 更新 Day 7 上传
This commit is contained in:
zhang yongquan
2018-08-07 10:54:38 +08:00
committed by GitHub
3 changed files with 2 additions and 0 deletions

View File

@ -36,9 +36,11 @@ X_train, X_test, Y_train, Y_test = train_test_split( X, Y, test_size = 1/4, rand
```python
plt.scatter(X_train , Y_train, color = 'red')
plt.plot(X_train , regressor.predict(X_train), color ='blue')
plt.show()
```
## 测试集结果可视化
```python
plt.scatter(X_test , Y_test, color = 'red')
plt.plot(X_test , regressor.predict(X_test), color ='blue')
plt.show()
```