- 博客(2)
- 收藏
- 关注
原创 train_test_split切分数据集报错
我的是excel表格的本地数据集,x有4个特征,y有一个标签,每次运行到train_test_split时都会报错:Expected 2D array, got scalar array instead: array=nan. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
2023-07-23 15:22:06
241
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人