UserWarning: X does not have valid feature names, but SGDClassifier was fitted with feature names

原因是输入的数据是array格式,应该使用pd.DataFrame方法转为dataframe格式:

 报错解决!

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐