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

This commit is contained in:
2024-12-04 10:53:02 +08:00
parent 856ca37db2
commit f7540d4913
+1 -1
View File
@@ -165,7 +165,7 @@ if __name__ == "__main__":
# 使用在交叉验证中选出的最佳模型在最终测试集上进行评估
evaluate_model(best_model, X_final_test, y_final_test)
# 测试单个数据
test_sample = X_final_test[11] # 选择第12个样本(从0开始计数)
predict_single_sample(best_model, test_sample, y_final_test[11])