紧急QUESTION
# 问题相关代码,请勿粘贴截图
model = LogisticRegression(C=1.0, max_iter=100)
model.fit(X_train, y_train)
#模型预测
y_predict =model.predict(X_test)
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0
找了很多方法,所有的都没有用,有人能够帮助嘛!