From 20e29460a3bad2583916b0275a6da422c3d7aea5 Mon Sep 17 00:00:00 2001 From: Dengddd <3149942468@qq.com> Date: Tue, 15 Oct 2024 15:46:20 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/function.py b/function.py index 749b8e5..37e9f8d 100644 --- a/function.py +++ b/function.py @@ -112,6 +112,7 @@ if __name__ == "__main__": ) # 将测试数据转换为向量 test_vector = np.array([int(char) for char in test_data]).reshape(1, 1024) + # 进行分类预测 predicted_label = classify(test_vector, train_data, train_labels) print(f"预测的标签: {predicted_label}")