更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 38s

This commit is contained in:
2024-10-31 16:26:51 +08:00
parent 6026fb2d21
commit 27bac617c1
+1 -1
View File
@@ -36,7 +36,7 @@ def train_logreg(X, y, learning_rate=0.01, iterations=1000):
Args: Args:
- X (numpy array): 特征数据。 - X (numpy array): 特征数据。
- y (numpy array): 标签数据。 - y (numpy array): 标签数据。
- other_params (str): 其它参数,可选设置。若需设置其它参数,必须设置其默认值,否则将**无法通过**自动评测,**成绩为零**。 - other_params (str): 其它参数,可选设置。若需设置其它参数,必须设置其默认值,否则将**无法通过**自动评测,**成绩为零*。
Returns: Returns:
- numpy array: 训练得到的权重。 - numpy array: 训练得到的权重。