# 留出法
from sklearn.model_selection import train_test_split
import pandas as pd
df = pd.read_csv('iris.csv')
X = df.iloc[:,1:5]
Y = df
python机器学习留出法与交叉验证法
最新推荐文章于 2022-10-11 23:43:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
# 留出法
from sklearn.model_selection import train_test_split
import pandas as pd
df = pd.read_csv('iris.csv')
X = df.iloc[:,1:5]
Y = df