From 65926187ab210526503c83184258a85e0463daad Mon Sep 17 00:00:00 2001 From: zhangchenghong <1598349064@qq.com> Date: Thu, 14 Nov 2024 17:07:57 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function.py b/function.py index 4475b60..7e4a279 100644 --- a/function.py +++ b/function.py @@ -70,8 +70,8 @@ def predict_svm(model, scaler, X): if __name__ == "__main__": # 加载数据 - X_train, y_train = load_data("./horse-colic.data") - X_test, y_test = load_data("./horse-colic.test") + X_train, y_train = load_data("./data/horse-colic.data") + X_test, y_test = load_data("./data/horse-colic.test") # 训练SVM model, scaler = train_svm(X_train, y_train)