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

This commit is contained in:
2024-11-07 16:54:32 +08:00
parent 89f3ea4351
commit 074138e37d
+1 -1
View File
@@ -31,7 +31,7 @@ import numpy as np
def sigmoid(z):
return 1 / (1 + np.exp(-z))
def train_logreg(X, y, learning_rate=0.01, iterations=1000):
def train_logreg(X, y, learning_rate=0.005, iterations=1000):
"""
对率回归训练函数。