From 8f049ba58d24337743b7d0f8bcf21fd364026c03 Mon Sep 17 00:00:00 2001 From: cy <939601402@qq.com> Date: Tue, 3 Dec 2024 09:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index 915a6a8..753d324 100644 --- a/function.py +++ b/function.py @@ -147,6 +147,6 @@ if __name__ == "__main__": print(f"测试集准确率: {accuracy * 100:.2f}%") # 测试单个数据 - test_sample = X_final_test[11] # 选择第12个样本(从0开始计数) + test_sample = X_final_test[11] # 选择第12个样本(从0开始计数) y_pred_single = predict_svm(test_sample, best_model) print(f"\n单个样本预测结果: {y_pred_single}, 实际结果: {y_final_test[11]}") \ No newline at end of file