From cf8ea3421721796a59fd42a8e2bb7283e4d28a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=87=9A=E7=87=8A?= Date: Sun, 3 Nov 2024 16:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index 05f90c3..147ca5a 100644 --- a/function.py +++ b/function.py @@ -90,6 +90,6 @@ if __name__ == "__main__": # 训练对率回归模型 weights = train_logreg(X_train, y_train, learning_rate=0.01, iterations=1000) - # 测试单个数据 + # 测试单个数据 y_pred = predict_logreg(X_test[11], weights) print(f"预测结果: {y_pred}, 实际结果: {y_test[11]}")