diff --git a/function.py b/function.py index bb78fce..4d4a511 100644 --- a/function.py +++ b/function.py @@ -132,4 +132,4 @@ if __name__ == "__main__": # 打印预测结果和实际结果(以最后一个正则化强度为例) predictions = predict_logreg(X_test, weights) for i in range(min(10, len(y_test))): - print(f"预测结果: {predictions[i]}, 实际结果: {y_test[i]}") + print(f"预测结果: {predictions[i]}, 实际结果: {y_test[i]}") \ No newline at end of file