更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 29s

This commit is contained in:
2024-11-03 17:20:12 +08:00
parent 826fbae9f1
commit 5169ad63aa
+3 -2
View File
@@ -40,7 +40,9 @@ def load_and_preprocess_horse_colic_data(train_filename, test_filename):
# 定义列名 # 定义列名
column_names = [ column_names = [
'surgery', 'age', 'hospital_number', 'rectal_temperature', 'surgery', 'age', 'hospital_number', 'rectal_temperature',
# ... 其他列名可以根据需要添加 'pulse', 'respiratory_rate', 'temperature_of_extremities',
'peripheral_pulse', 'mucous_membrane', 'capillary_refill_time',
'pain', 'surgical_lesion', 'type_of_lesion', 'surgical_lesion_location',
'outcome' # 假设'outcome'是目标变量,1=lived, 2=died, 3=euthanized 'outcome' # 假设'outcome'是目标变量,1=lived, 2=died, 3=euthanized
] ]
@@ -90,4 +92,3 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()