@ -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()
|
||||
```
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 750 KiB After Width: | Height: | Size: 746 KiB |
BIN
Info-graphs/Day 7.jpg
Normal file
BIN
Info-graphs/Day 7.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 890 KiB |
Reference in New Issue
Block a user