标签: python-3.x pandas dataframe logistic-regression predict
我尝试对我的数据应用逻辑回归模型。我意识到我的模型只能预测课程[0] 代码:
logisticRegr = LogisticRegression() logisticRegr.fit(X_train, y_train) predictions = logisticRegr.predict(X_test)
请问该怎么解决?