成功解决ValueError: Expected 2D array, got 1D array instead: Reshape your data either using array.reshap

成功解决ValueError: Expected 2D array, got 1D array instead: Reshape your data either using array.reshap

 

 

目录

解决问题

解决思路

解决方法


 

 

 

解决问题

ValueError: Expected 2D array, got 1D array instead: 
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.

ValueError

你可能感兴趣的:(Computer,knowledge,安装教程以及Bug解决)