Update FAQ.MD

This commit is contained in:
zhang yongquan
2018-09-08 09:02:14 +08:00
committed by GitHub
parent 1565a127d9
commit 070a16e64e

2
FAQ.MD
View File

@ -33,7 +33,7 @@ sklearn工具包0.19和0.20版本cross_validation在0.20版本是将被移除
见[issue63](https://github.com/MLEveryday/100-Days-Of-ML-Code/issues/63)。
### 8. Python版本
建议使用Python3。使用Python2.7运行示例代码时可能有问题例如线性回归如下代码中“1/4”在Python2.7中不执行
建议使用Python3。使用Python2.7运行示例代码时可能有问题例如线性回归如下代码中“1/4”在Python2.7中1/4=0可以改成“1.0/4”或者“0.25”
```python
X_train, X_test, Y_train, Y_test = train_test_split( X, Y, test_size = 1/4, random_state = 0)
```