generated from LufsX/Experiment-LogReg
This commit is contained in:
+3
-2
@@ -92,8 +92,9 @@ def load_data(filepath):
|
|||||||
|
|
||||||
# main函数,程序的入口点
|
# main函数,程序的入口点
|
||||||
def main():
|
def main():
|
||||||
X_train, y_train = load_data("./data/horse-colic.data") # 加载训练数据
|
# 假设data文件夹和function.py在同一目录下
|
||||||
X_test, y_test = load_data("./data/horse-colic.test") # 加载测试数据
|
X_train, y_train = load_data("./data/horse-colic.data")
|
||||||
|
X_test, y_test = load_data("./data/horse-colic.test")
|
||||||
|
|
||||||
if X_train is not None and X_test is not None:
|
if X_train is not None and X_test is not None:
|
||||||
# 特征缩放
|
# 特征缩放
|
||||||
|
|||||||
Reference in New Issue
Block a user