generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ if __name__ == "__main__":
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user