From 88a61b0543e7c1b233d031c20369861d0ab95555 Mon Sep 17 00:00:00 2001 From: dong <2938690875@qq.com> Date: Fri, 15 Nov 2024 15:30:33 +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 9e954a0..ac4eb06 100644 --- a/function.py +++ b/function.py @@ -112,7 +112,7 @@ def predict_svm(inX, model): - model (SVC): 训练得到的支持向量机模型。 Returns: - - int: 预测的分类标签。 + - int: 预测的分类标签 """ return model.predict(inX.reshape(1, -1))[0]