diff --git a/function.py b/function.py index 751571a..4173562 100644 --- a/function.py +++ b/function.py @@ -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.01, iterations=5000) + weights = train_logreg(X_train, y_train, learning_rate=0.001, iterations10000) # 测试单个数据 y_pred = predict_logreg(X_test[11], weights)