From 125ed82c3b3cd9a12e1e60516a0fc2efd91dce68 Mon Sep 17 00:00:00 2001 From: 202210423116 <2477589483@qq.com> Date: Sun, 3 Nov 2024 14:46:05 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function.py b/function.py index 043fecb..6c764ed 100644 --- a/function.py +++ b/function.py @@ -26,6 +26,7 @@ name = "廖运瑞" # 这里写自己的代码实现 +import numpy as np from sklearn.preprocessing import MinMaxScaler from sklearn.model_selection import train_test_split @@ -139,4 +140,4 @@ if __name__ == "__main__": # 测试模型 final_test_accuracy = accuracy(X_test, y_test, final_weights) - print(f"最终测试集的准确率: {final_test_accuracy:.4f}, 其他信息: {t[11]}") \ No newline at end of file + print(f"最终测试集的准确率: {final_test_accuracy:.4f}") \ No newline at end of file