generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ if __name__ == "__main__":
|
||||
X_test, y_test = load_data("./data/horse-colic.test")
|
||||
|
||||
# 使用liblinear训练对率回归模型
|
||||
weights = train_logreg(X_train, y_train, max_iter=1000)
|
||||
weights = train_logreg(X_train, y_train, max_iter=5000)
|
||||
|
||||
# 测试单个样本的预测
|
||||
y_pred = predict_logreg(X_test[11], weights)
|
||||
|
||||
Reference in New Issue
Block a user