generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -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):
|
||||
"""
|
||||
对率回归训练函数。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user