generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ def train_logreg(X, y, learning_rate=0.05, iterations=1500, batch_size=64, regul
|
||||
Returns:
|
||||
- numpy array: 训练得到的权重。
|
||||
"""
|
||||
m, n = X.shape
|
||||
m, n = X.shape
|
||||
weights = np.random.randn(n) * 0.01
|
||||
|
||||
for i in range(iterations):
|
||||
|
||||
Reference in New Issue
Block a user