From f84c4a0a2bd3b348ced6b2122e6920f73a348121 Mon Sep 17 00:00:00 2001 From: 77 <3298722099@qq.com> Date: Fri, 27 Dec 2024 14:54:46 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/function.py b/function.py index 6175d09..a7acbee 100644 --- a/function.py +++ b/function.py @@ -1,8 +1,6 @@ - id = "202210423201" name = "陈瑞琪祥" - import numpy as np from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score @@ -76,3 +74,4 @@ if __name__ == "__main__": test_sample = X_test[11] # 选择第12个样本(从0开始计数) y_pred_single = predict_svm(test_sample.reshape(1, -1), weights, bias) print(f"\n单个样本预测结果: {y_pred_single[0]}, 实际结果: {y_test[11]}") +