sci-kit learn: Reshape your data either using X.reshape(-1, 1)

后端 未结 6 1496
再見小時候
再見小時候 2021-02-04 20:56

I\'m training a python (2.7.11) classifier for text classification and while running I\'m getting a deprecated warning message that I don\'t know which line in my code is causin

6条回答
  •  忘了有多久
    2021-02-04 21:15

    Predict method expects 2-d array , you can watch this video , i have also located the exact time https://youtu.be/KjJ7WzEL-es?t=2602 .You have to change from [] to [[]].

提交回复
热议问题