Prechádzať zdrojové kódy

1.锡山预测模型更新

zhanghao 2 dní pred
rodič
commit
f761125060

+ 142 - 0
models/prediction_models/20min/xishan/config.yaml

@@ -0,0 +1,142 @@
+# xishan_config.yaml
+project:
+  plant_name: "xishan"
+
+files:
+  dataset_dir: "datasets_xishan"
+  file_pattern: "data_process_{}.csv"
+  model_filename: "model.pth"
+  scaler_filename: "scaler.pkl"
+  output_csv_filename: "predictions.csv"
+  edge_index_filename: "edge_index.pt"
+
+data_split:
+  start_files: 1
+  end_files: 68
+  train_start_date: "2024-02-23"
+  train_end_date: "2026-05-14"
+  val_start_date: "2024-02-23"
+  val_end_date: "2026-05-14"
+  test_start_date: "2024-02-23"
+  test_end_date: "2026-05-14"
+
+model_params:
+  seq_len: 10
+  output_size: 5
+  step_size: 5
+  resolution: 60
+  feature_num: 79
+  labels_num: 16
+  hidden_size: 64
+  num_layers: 1
+  dropout: 0.0
+
+training_params:
+  epochs: 200
+  lr: 0.01
+  batch_size: 1024   
+  scheduler_step_size: 100
+  scheduler_gamma: 0.9
+  patience: 200
+  min_delta: 1.0e-10
+  device: 0
+  random_seed: 1314
+
+sensors:
+  # 输入传感器列
+  required_columns:
+    - "index"
+    - "C.M.FT_ZGJJY1@out"
+    - "C.M.RO1_FT_JS@out"
+    - "C.M.RO2_FT_JS@out"
+    - "C.M.RO3_FT_JS@out"
+    - "C.M.RO4_FT_JS@out"
+    - "C.M.UF1_FT_JS@out"
+    - "C.M.UF2_FT_JS@out"
+    - "C.M.UF3_FT_JS@out"
+    - "C.M.UF4_FT_JS@out"
+    - "C.M.UF_FT_ZCS@out"
+    - "C.M.FT_ZGJJY2@out"
+    - "C.M.FT_ZGJJY3@out"
+    - "C.M.FT_ZGJJY4@out"
+    - "C.M.RO1_PT_JS@out"
+    - "C.M.RO2_PT_JS@out"
+    - "C.M.RO3_PT_JS@out"
+    - "C.M.UF1_PT_JS@out"
+    - "C.M.UF2_PT_JS@out"
+    - "C.M.UF3_PT_JS@out"
+    - "C.M.UF4_PT_JS@out"
+    - "C.M.LT_JSC@out"
+    - "C.M.RO1_PT_CS@out"
+    - "C.M.RO1_PT_DJ2@out"
+    - "C.M.RO2_PT_CS@out"
+    - "C.M.RO2_PT_DJ2@out"
+    - "C.M.RO3_PT_CS@out"
+    - "C.M.RO3_PT_DJ2@out"
+    - "C.M.RO4_PT_CS@out"
+    - "C.M.RO4_PT_DJ2@out"
+    - "C.M.RO4_PT_JS@out"
+    - "C.M.LT_HCl@out"
+    - "C.M.LT_NaClO@out"
+    - "C.M.LT_PAC@out"
+    - "C.M.LT_QSC@out"
+    - "C.M.RO_Cond_ZCS@out"
+    - "C.M.RO_TT_ZJS@out"
+    - "C.M.UF1_JSF_kd@out"
+    - "C.M.UF2_JSF_kd@out"
+    - "C.M.UF_GSB4_fre@out"
+    - "C.M.UF_ORP_ZCS@out"
+    - "C.M.JYB2_ZGJ1_fre@out"
+    - "C.M.JYB2_ZGJ2_fre@out"
+    - "C.M.JYB2_ZGJ3_fre@out"
+    - "C.M.JYB2_ZGJ4_fre@out"
+    - "C.M.RO1_GYB_fre@out"
+    - "C.M.RO2_GYB_fre@out"
+    - "C.M.RO3_GYB_fre@out"
+    - "C.M.RO4_GYB_fre@out"
+    - "C.M.UF3_JSF_kd@out"
+    - "C.M.UF4_JSF_kd@out"
+    - "C.M.UF_FXB2_fre@out"
+    - "C.M.RO1_DJB_fre@out"
+    - "C.M.RO1_GYBF_kd@out"
+    - "C.M.RO2_DJB_fre@out"
+    - "C.M.RO2_GYBF_kd@out"
+    - "C.M.RO3_DJB_fre@out"
+    - "C.M.RO3_GYBF_kd@out"
+    - "C.M.RO4_DJB_fre@out"
+    - "C.M.RO4_GYBF_kd@out"
+    - "C.M.UF1_DB@press_PV"
+    - "C.M.UF2_DB@press_PV"
+    - "C.M.UF3_DB@press_PV"
+    - "C.M.UF4_DB@press_PV"
+    - "UF1Per"
+    - "UF2Per"
+    - "UF3Per"
+    - "UF4Per"
+    - "C.M.RO1_DB@DPT_1"
+    - "C.M.RO2_DB@DPT_1"
+    - "C.M.RO3_DB@DPT_1"
+    - "C.M.RO4_DB@DPT_1"
+    - "C.M.RO1_DB@DPT_2"
+    - "C.M.RO2_DB@DPT_2"
+    - "C.M.RO3_DB@DPT_2"
+    - "C.M.RO4_DB@DPT_2"
+  
+  # 最终预测目标列
+  target_columns:
+    - "C.M.UF1_DB@press_PV"
+    - "C.M.UF2_DB@press_PV"
+    - "C.M.UF3_DB@press_PV"
+    - "C.M.UF4_DB@press_PV"
+    - "UF1Per"
+    - "UF2Per"
+    - "UF3Per"
+    - "UF4Per"
+    - "C.M.RO1_DB@DPT_1"
+    - "C.M.RO2_DB@DPT_1"
+    - "C.M.RO3_DB@DPT_1"
+    - "C.M.RO4_DB@DPT_1"
+    - "C.M.RO1_DB@DPT_2"
+    - "C.M.RO2_DB@DPT_2"
+    - "C.M.RO3_DB@DPT_2"
+    - "C.M.RO4_DB@DPT_2"

BIN
models/prediction_models/20min/xishan/edge_index.pt


BIN
models/prediction_models/20min/xishan/id_list.xlsx


+ 76 - 0
models/prediction_models/20min/xishan/input_format.txt

@@ -0,0 +1,76 @@
+index
+C.M.FT_ZGJJY1@out
+C.M.RO1_FT_JS@out
+C.M.RO2_FT_JS@out
+C.M.RO3_FT_JS@out
+C.M.RO4_FT_JS@out
+C.M.UF1_FT_JS@out
+C.M.UF2_FT_JS@out
+C.M.UF3_FT_JS@out
+C.M.UF4_FT_JS@out
+C.M.UF_FT_ZCS@out
+C.M.FT_ZGJJY2@out
+C.M.FT_ZGJJY3@out
+C.M.FT_ZGJJY4@out
+C.M.RO1_PT_JS@out
+C.M.RO2_PT_JS@out
+C.M.RO3_PT_JS@out
+C.M.UF1_PT_JS@out
+C.M.UF2_PT_JS@out
+C.M.UF3_PT_JS@out
+C.M.UF4_PT_JS@out
+C.M.LT_JSC@out
+C.M.RO1_PT_CS@out
+C.M.RO1_PT_DJ2@out
+C.M.RO2_PT_CS@out
+C.M.RO2_PT_DJ2@out
+C.M.RO3_PT_CS@out
+C.M.RO3_PT_DJ2@out
+C.M.RO4_PT_CS@out
+C.M.RO4_PT_DJ2@out
+C.M.RO4_PT_JS@out
+C.M.LT_HCl@out
+C.M.LT_NaClO@out
+C.M.LT_PAC@out
+C.M.LT_QSC@out
+C.M.RO_Cond_ZCS@out
+C.M.RO_TT_ZJS@out
+C.M.UF1_JSF_kd@out
+C.M.UF2_JSF_kd@out
+C.M.UF_GSB4_fre@out
+C.M.UF_ORP_ZCS@out
+C.M.JYB2_ZGJ1_fre@out
+C.M.JYB2_ZGJ2_fre@out
+C.M.JYB2_ZGJ3_fre@out
+C.M.JYB2_ZGJ4_fre@out
+C.M.RO1_GYB_fre@out
+C.M.RO2_GYB_fre@out
+C.M.RO3_GYB_fre@out
+C.M.RO4_GYB_fre@out
+C.M.UF3_JSF_kd@out
+C.M.UF4_JSF_kd@out
+C.M.UF_FXB2_fre@out
+C.M.RO1_DJB_fre@out
+C.M.RO1_GYBF_kd@out
+C.M.RO2_DJB_fre@out
+C.M.RO2_GYBF_kd@out
+C.M.RO3_DJB_fre@out
+C.M.RO3_GYBF_kd@out
+C.M.RO4_DJB_fre@out
+C.M.RO4_GYBF_kd@out
+C.M.UF1_DB@press_PV
+C.M.UF2_DB@press_PV
+C.M.UF3_DB@press_PV
+C.M.UF4_DB@press_PV
+UF1Per
+UF2Per
+UF3Per
+UF4Per
+C.M.RO1_DB@DPT_1
+C.M.RO2_DB@DPT_1
+C.M.RO3_DB@DPT_1
+C.M.RO4_DB@DPT_1
+C.M.RO1_DB@DPT_2
+C.M.RO2_DB@DPT_2
+C.M.RO3_DB@DPT_2
+C.M.RO4_DB@DPT_2

BIN
models/prediction_models/20min/xishan/model.pth


+ 2 - 0
models/prediction_models/20min/xishan/output_format.txt

@@ -0,0 +1,2 @@
+预测结果 (5x16 数组):
+[[0.08400968466198445, 0.12557378380298612, 0.06475018527710429, 0.04776581596064569, 212.40613839064213, 7131.735654512791, 6667.2700479142195, 6009.450638367511, 0.2803069731317758, 0.623237689902544, 0.07706849609851839, 0.0863220217239857, 0.004254012893840675, 0.030531859760865573, 0.03381672577285767, 0.39735463065731524], [0.10589904314255716, 0.48852541452121734, 0.08212486438965805, 0.27601038673996925, 468.80734937945334, 122.9886636891504, 290.37148385667587, 255.69433874777172, 0.2794890767030716, 0.7111105395050049, 0.05162839364051819, 0.011425778825342675, 0.06562411406254769, 0.23368299650347238, 0.2907899751739503, 0.06233154235485196], [0.09262244244790079, 0.08162280855393408, 0.16655943290671713, 0.029540309414654967, 246.76910016695882, 73.87483927791844, 120.29871428154267, 273.13748930660313, 0.17485988460594418, 0.3450499105798006, 0.7146080200317502, 0.32179532066866756, 0.16920850167798995, 0.09256017583727838, 0.3499411379013062, 0.3085126327507496], [0.06205794316744805, 0.028526879809379596, 0.0849591971000432, 0.021420852899849425, 1034.0526887638446, 961.5656917470322, 4185.771401889677, 2022.0444361080947, 0.07646512387251853, 0.18044561658975483, 0.3929771177890897, 0.39625403686547284, 0.14038622800195216, 0.1272347196928263, 0.01567003936386109, 0.2447390774347186], [0.022362252881288534, 0.04277801477289202, 0.029837977881967934, 0.01329046069091558, 239.0501246852968, 284.73068637686674, 1069.0523099500176, 545.2374887508234, 0.005692981042504302, 0.7566334551657439, 0.09129444043993952, 0.5308534833282234, 0.1890640781161785, 0.002439971729665999, 0.06837902120590211, 0.4925916800879239]]

BIN
models/prediction_models/20min/xishan/scaler.pkl