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

This commit is contained in:
2024-10-31 16:32:36 +08:00
parent 87b3be23ab
commit f58b269f33
+1 -1
View File
@@ -102,7 +102,7 @@ if __name__ == "__main__":
X_test, y_test = load_data("./data/horse-colic.test")
# 训练对率回归模型
weights = train_logreg(X_train, y_train, learning_rate=0.001, iterations10000)
weights = train_logreg(X_train, y_train, learning_rate=0.001, iterations=10000)
# 测试单个数据
y_pred = predict_logreg(X_test[11], weights)