Preprocessing in scikit learn - single sample - Depreciation warning

前端 未结 6 2082
礼貌的吻别
礼貌的吻别 2020-11-27 05:01

On a fresh installation of Anaconda under Ubuntu... I am preprocessing my data in various ways prior to a classification task using Scikit-Learn.

from sklear         


        
6条回答
  •  遥遥无期
    2020-11-27 06:01

    You can always, reshape like:

    temp = [1,2,3,4,5,5,6,7]
    
    temp = temp.reshape(len(temp), 1)
    

    Because, the major issue is when your, temp.shape is: (8,)

    and you need (8,1)

提交回复
热议问题