99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2021-05-11 閱讀量: 1837
python調(diào)用sklearn報錯: Reshape your data either using array.reshape(-1, 1)

問:

python調(diào)用sklearn報錯:

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.

image.png

image.png


答:

這是因為sklearn傳入的數(shù)據(jù)要求是二維矩陣,需要把傳入的數(shù)據(jù)用 .reshape(1,-1) 轉(zhuǎn)換成二維后再調(diào)用就可以了。




102.8571
0
關(guān)注作者
收藏
評論(0)

發(fā)表評論

暫無數(shù)據(jù)
推薦帖子