From 999b5e85f85c6aae5a157244addefca7620ce7ff Mon Sep 17 00:00:00 2001 From: dong <2938690875@qq.com> Date: Thu, 31 Oct 2024 16:50:31 +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 ddd8604..ae9b670 100644 --- a/function.py +++ b/function.py @@ -67,7 +67,7 @@ def predict_logreg(inX, weights): Returns: - int: 预测的分类标签。 """ - z = np.dot(inX, weights) + z = np.dot(inX, weights) prediction_prob = 1 / (1 + np.exp(-z)) return 1 if prediction_prob >= 0.5 else 0