generated from LufsX/Challenge-SVM
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ def predict_svm(inX, model):
|
||||
- model (SVC): 训练得到的支持向量机模型。
|
||||
|
||||
Returns:
|
||||
- int: 预测的分类标签。
|
||||
- int: 预测的分类标签
|
||||
"""
|
||||
return model.predict(inX.reshape(1, -1))[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user