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

This commit is contained in:
2024-10-15 15:46:20 +08:00
parent 4a48a6830c
commit 20e29460a3
+1
View File
@@ -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}")