上传文件至 /
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 28s

This commit is contained in:
2024-11-03 16:28:04 +08:00
parent d20f22777f
commit 8c1bf0f61e
+1 -1
View File
@@ -50,7 +50,7 @@ if __name__ == "__main__":
model = train_logreg(X_train, y_train)
# 预测
y_pred = model.predict(preprocess_data(X_test)) # 直接在测试集上预测
y_pred = predict_logreg(model, X_test) # 调用预测函数
# 计算准确率
accuracy = np.mean(y_pred == y_test)