From d9d35afd7f771ec848987a350eaa22b69b5d3acc Mon Sep 17 00:00:00 2001 From: yuankun <2317257524@qq.com> Date: Sun, 3 Nov 2024 12:45:51 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/function.py b/function.py index ca8edc4..8acd6c7 100644 --- a/function.py +++ b/function.py @@ -1,4 +1,4 @@ -# function.py +import os import numpy as np """ @@ -17,14 +17,12 @@ import numpy as np - numpy: 2.1.1 """ - """ 请在这里填写学号和姓名,不填写即成绩无效。 """ id = "202210423120" name = "袁焜" - # 这里写自己的代码实现 import numpy as np from sklearn.preprocessing import MinMaxScaler @@ -141,7 +139,6 @@ if __name__ == "__main__": # 测试模型 final_test_accuracy = accuracy(X_test, y_test, final_weights) print(f"最终测试集的准确率: {final_test_accuracy:.4f}") - # 加载测试集 X_test, y_test = load_data("./data/horse-colic.test")