更新时间:2023-12-01 21:40:16
您不应该将 X_train
和 y_train
传递给 LogisticRegression
构造函数.你只需要
You shouldn't pass X_train
and y_train
to LogisticRegression
constructor. You need just
...
clf = linear_model.LogisticRegression()
clf.fit(X_train, y_train)