From 7251ae381dfe30eb703981eb41199e4c2f917674 Mon Sep 17 00:00:00 2001 From: 43606070 <43606070@qq.com> Date: Tue, 29 Oct 2024 18:39:21 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function.py b/function.py index a8084ef..a3e7efe 100644 --- a/function.py +++ b/function.py @@ -29,7 +29,8 @@ def sigmoid(z): # 对率回归训练函数 -def train_logreg(X, y, learning_rate=0.01, iterations=1000): +def train_logreg(X, y, learning_rate=0.01, iterations=1000): + """ 对率回归训练函数。