UserWarning: X does not have valid feature names, but SGDClassifier was fitted with feature names
原因是输入的数据是array格式,应该使用pd.DataFrame方法转为dataframe格式:
报错解决!
UserWarning: X does not have valid feature names, but SGDClassifier was fitted with feature names
原因是输入的数据是array格式,应该使用pd.DataFrame方法转为dataframe格式:
报错解决!