我正在尝试使用K近邻来预测美国个人的保险成本 我已经成功地训练了数据集,当我尝试预测时,它开始处理错误 ValueError: Expected 2Darray, got 1Darray instead:
array=[19.27.896 0. 1. 0. ].Reshape your data either using array.reshape(-1, 1) i
在执行代码时:错误是
ValueError: Expected 2Darray, got 1Darray instead:& Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshapecontains a single