DataConversionWarning: A column-vector y was passed when a 1d array was expected. 问题解决 和 数据平衡问题...
在用SMOTE算法模块进行过采样(oversampling)时,pandas导入训练集合特征和label。fromimblearn.over_samplingimportSMOTE#导入SMOTE算法模块#处理不平衡数据sm=SMOTE(random_state=122)#处理过采样的方法X,y=sm.fit_sample(X,y)/Users/wangchuang/anaconda3/lib/p