From b21fdffd5bb20f22318cf95f9f56762f0a39879a Mon Sep 17 00:00:00 2001 From: leiwu <1929652729@qq.com> Date: Sun, 3 Nov 2024 20:52:49 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/function.py b/function.py index b260520..a9088dd 100644 --- a/function.py +++ b/function.py @@ -37,6 +37,7 @@ def train_logreg(X, y, learning_rate=0.001, iterations=10000, batch_size=64, lam if i % 1000 == 0: # 每1000次迭代打印一次信息 print(f"迭代 {i}: 当前权重形状: {weights.shape}") + return weights def predict_logreg(inX, weights):