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

This commit is contained in:
2024-10-31 15:17:57 +08:00
parent b71e1fafc2
commit 80fbb5b240
+1 -1
View File
@@ -115,7 +115,7 @@ if __name__ == "__main__":
X, y = preprocess_data(X, y) X, y = preprocess_data(X, y)
# 训练模型 # 训练模型
weights = train_logreg(X, y, learning_rate=0.01, l2_penalty=0.01) weights = train_logreg(X, y, learning_rate=0.001, l2_penalty=0.01)
# 加载测试数据并进行预处理 # 加载测试数据并进行预处理
X_test, y_test = load_data("./data/horse-colic.test") X_test, y_test = load_data("./data/horse-colic.test")