错误信息:
C:\Python27\lib\site-packages\sklearn\utils\validation.py: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning
make your data from 1D to 2D
-
Just add: