generated from LufsX/Challenge-SVM
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ if __name__ == "__main__":
|
||||
|
||||
# 使用在交叉验证中选出的最佳模型在最终测试集上进行评估
|
||||
evaluate_model(best_model, X_final_test, y_final_test)
|
||||
|
||||
|
||||
# 测试单个数据
|
||||
test_sample = X_final_test[11] # 选择第12个样本(从0开始计数)
|
||||
predict_single_sample(best_model, test_sample, y_final_test[11])
|
||||
Reference in New Issue
Block a user