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

This commit is contained in:
2024-10-31 15:27:37 +08:00
parent 50cb67a818
commit e55b05db9b
+1 -1
View File
@@ -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]}")