Update Day 3_Multiple_Linear_Regression.md
This commit is contained in:
@ -36,7 +36,7 @@ X = X[: , 1:]
|
|||||||
|
|
||||||
### 拆分数据集为训练集和测试集
|
### 拆分数据集为训练集和测试集
|
||||||
```python
|
```python
|
||||||
from sklearn.cross_validation import train_test_split
|
from sklearn.model_selection import train_test_split
|
||||||
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.2, random_state = 0)
|
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.2, random_state = 0)
|
||||||
```
|
```
|
||||||
## 第2步: 在训练集上训练多元线性回归模型
|
## 第2步: 在训练集上训练多元线性回归模型
|
||||||
|
|||||||
Reference in New Issue
Block a user