From f58b269f331394ad1274805a3d704d3bc2f40913 Mon Sep 17 00:00:00 2001 From: zhangchenghong <1598349064@qq.com> Date: Thu, 31 Oct 2024 16:32:36 +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 4173562..68c6c40 100644 --- a/function.py +++ b/function.py @@ -102,7 +102,7 @@ if __name__ == "__main__": X_test, y_test = load_data("./data/horse-colic.test") # 训练对率回归模型 - weights = train_logreg(X_train, y_train, learning_rate=0.001, iterations10000) + weights = train_logreg(X_train, y_train, learning_rate=0.001, iterations=10000) # 测试单个数据 y_pred = predict_logreg(X_test[11], weights)