generated from LufsX/Experiment-LogReg
This commit is contained in:
+3
-2
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user