From 6f5078e2059ed2f8ffe79602cf30409486459480 Mon Sep 17 00:00:00 2001 From: Dengddd <3149942468@qq.com> Date: Thu, 31 Oct 2024 15:08:50 +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 4698258..fbac677 100644 --- a/function.py +++ b/function.py @@ -32,7 +32,7 @@ def sigmoid(z): """计算sigmoid函数""" return 1 / (1 + np.exp(-z)) -def train_logreg(X, y, learning_rate=0.01, iterations=1000,2_penalty=0.01): +def train_logreg(X, y, learning_rate=0.01, iterations=1000, 2_penalty=0.01): """对率回归训练函数。""" weights = np.zeros(X.shape[1])