├── train_frame.csv ├── train_space_frame.csv ├── README.md ├── time_train ├── time_2.csv ├── time_6.csv ├── time_4.csv ├── time_9.csv ├── time_1.csv ├── time_11.csv ├── time_12.csv ├── time_8.csv ├── time_7.csv ├── time_10.csv ├── time_5.csv ├── time_3.csv ├── only_AQI.csv ├── train_3day_onlyAQI.csv └── origin_train_only6AQI_2.csv ├── AQI_label.py ├── space_train ├── space_2.csv ├── space_4.csv ├── space_9.csv ├── space_11.csv ├── space_6.csv ├── space_3.csv ├── space_1.csv ├── space_10.csv ├── space_12.csv ├── space_5.csv ├── space_8.csv └── space_7.csv ├── space_AQI_label.py ├── origin_6AQI_label.py ├── only_6AQI.py └── improved_PSO_train_NN.py /train_frame.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | ,70,,,,, 3 | -------------------------------------------------------------------------------- /train_space_frame.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 0,0,0,0,0,0,0,0,0,0,0,0,0 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PSO-train-BP-NN 2 | This project use PSO (Particle Swarm Optimization) to train the single layer NN structure. 3 | 4 | If you only want to see the training process and result, 'improved_PSO_train_NN.py' can run directly. 5 | 6 | 'NN_train_AQI.py' is the traditional NN set up by keras, which can compare with the result of 'improved_PSO_train_NN.py'. 7 | 8 | When the 'improved_PSO_train_NN.py' run, the console will represent the number of epoch, the error of val data, the error of test data, and cost time per epoch. 9 | 10 | The data is air quality index download from Environmental Protection Administration Executive Yuan, R.O.C. (Taiwan). (https://data.epa.gov.tw/dataset/aqx_p_13) 11 | 12 | 'space' and 'time' is original data. 13 | 14 | 'space_train' and 'time_train' is the data after preprocessing. 15 | 16 | 'AQI_label.py', 'only_6AQI.py', 'space_AQI_label.py',and 'origin_6AQI_label.py' is the preprocessing of data. 17 | 18 | The process divided the data into three kinds. 19 | 20 | 1.Predict the AQI at different times in the same place. 21 | 22 | 2.Predict the AQI at different places in the same time. 23 | 24 | 3.Predict AQI from 6 kinds of air quality values. 25 | 26 | 27 | -------------------------------------------------------------------------------- /time_train/time_2.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/2/1,70,0.47666666666666674,24.75,15.291666666666666,0.8291666666666666,49.6482683982684 3 | 2020/2/2,70,0.5208333333333334,18.083333333333332,9.541666666666666,1.6916666666666667,30.979437229437227 4 | 2020/2/3,70,0.7899999999999999,16.347826086956523,10.26086956521739,1.9304347826086956,33.31451157538114 5 | 2020/2/4,70,0.96875,15.666666666666666,10.375,1.6000000000000003,33.685064935064936 6 | 2020/2/5,70,0.5675,18.666666666666668,10.208333333333334,0.9291666666666667,33.1439393939394 7 | 2020/2/6,70,0.5982608695652174,15.608695652173912,9.0,1.8130434782608698,29.22077922077922 8 | 2020/2/7,70,0.8291304347826087,18.25,7.541666666666667,1.0608695652173912,24.485930735930737 9 | 2020/2/8,70,0.5791666666666667,22.583333333333332,10.75,0.8833333333333333,34.9025974025974 10 | 2020/2/9,70,0.43875000000000003,25.375,16.375,2.1333333333333333,53.26851851851852 11 | 2020/2/10,70,0.43041666666666667,31.541666666666668,17.833333333333332,1.0791666666666666,57.04938271604938 12 | 2020/2/11,70,1.1570833333333332,33.041666666666664,20.208333333333332,1.7291666666666667,63.20679012345679 13 | 2020/2/12,70,1.4920833333333334,39.166666666666664,25.416666666666668,2.0666666666666664,76.70987654320989 14 | 2020/2/13,70,0.9695833333333334,26.82608695652174,17.125,1.9958333333333336,55.21296296296296 15 | 2020/2/14,70,0.9554166666666667,27.869565217391305,18.434782608695652,1.6041666666666667,58.608695652173914 16 | 2020/2/15,70,1.0429166666666667,20.958333333333332,13.208333333333334,1.6916666666666667,42.884199134199136 17 | 2020/2/16,70,0.47750000000000004,11.25,6.833333333333333,3.8625000000000003,22.186147186147185 18 | 2020/2/17,70,0.50125,32.333333333333336,13.916666666666666,1.2727272727272727,45.183982683982684 19 | 2020/2/18,70,0.3408695652173913,22.73913043478261,10.608695652173912,1.173913043478261,34.4438170525127 20 | 2020/2/19,70,0.5583333333333332,20.791666666666668,9.041666666666666,1.2833333333333332,29.356060606060606 21 | 2020/2/20,70,0.6766666666666667,18.458333333333332,10.166666666666666,1.875,33.00865800865801 22 | 2020/2/21,70,0.9904166666666665,32.75,18.291666666666668,1.1500000000000001,58.23765432098766 23 | 2020/2/22,70,0.595,37.583333333333336,25.333333333333332,0.7666666666666666,76.49382716049382 24 | 2020/2/23,70,0.3666666666666667,51.0,20.434782608695652,0.9608695652173914,63.7938808373591 25 | 2020/2/24,70,0.8075000000000001,19.708333333333332,11.291666666666666,0.9791666666666666,36.66125541125541 26 | 2020/2/25,70,1.2170833333333333,39.041666666666664,23.75,2.7999999999999994,72.38888888888889 27 | 2020/2/26,70,0.8112499999999999,30.416666666666668,19.041666666666668,1.95,60.1820987654321 28 | 2020/2/27,70,0.46208333333333335,20.869565217391305,11.909090909090908,0.5391304347826086,38.66587957497048 29 | 2020/2/28,70,0.9491666666666667,46.125,22.875,2.1791666666666667,70.12037037037038 30 | 2020/2/29,70,1.025,29.25,19.833333333333332,2.595833333333333,62.23456790123457 31 | -------------------------------------------------------------------------------- /time_train/time_6.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/6/1,70,0.8395652173913044,16.375,8.333333333333334,2.1391304347826083,27.056277056277057 3 | 2020/6/2,70,0.9914285714285714,21.59090909090909,11.347826086956522,1.2333333333333332,36.843591191417275 4 | 2020/6/3,70,0.6191666666666666,20.08695652173913,9.08695652173913,2.591304347826087,29.503105590062113 5 | 2020/6/4,70,0.5995833333333334,22.458333333333332,10.333333333333334,1.6333333333333335,33.54978354978355 6 | 2020/6/5,70,0.68375,22.583333333333332,11.333333333333334,1.0625,36.7965367965368 7 | 2020/6/6,70,0.5225,19.125,8.083333333333334,2.125,26.244588744588746 8 | 2020/6/7,70,0.6625,14.583333333333334,7.541666666666667,1.7333333333333332,24.485930735930737 9 | 2020/6/8,70,0.8283333333333333,16.708333333333332,6.833333333333333,0.9791666666666666,22.186147186147185 10 | 2020/6/9,70,0.821304347826087,16.043478260869566,7.086956521739131,1.7782608695652176,23.00959909655562 11 | 2020/6/10,70,0.8033333333333333,19.166666666666668,10.333333333333334,2.225,33.54978354978355 12 | 2020/6/11,70,0.93,29.708333333333332,15.416666666666666,2.4,50.05411255411255 13 | 2020/6/12,70,0.8604166666666666,26.916666666666668,14.083333333333334,1.05,45.72510822510823 14 | 2020/6/13,70,0.6629166666666667,25.5,12.708333333333334,2.129166666666667,41.260822510822514 15 | 2020/6/14,70,0.7033333333333333,21.625,12.666666666666666,1.5083333333333335,41.125541125541126 16 | 2020/6/15,70,0.5854166666666667,20.208333333333332,6.333333333333333,1.1791666666666667,20.562770562770563 17 | 2020/6/16,70,0.5333333333333333,17.916666666666668,7.958333333333333,1.7874999999999999,25.83874458874459 18 | 2020/6/17,70,0.5933333333333334,22.083333333333332,9.833333333333334,1.3499999999999996,31.926406926406926 19 | 2020/6/18,70,0.5012500000000001,19.291666666666668,9.375,1.6375,30.43831168831169 20 | 2020/6/19,70,0.5875,21.565217391304348,10.304347826086957,2.1869565217391305,33.45567476002259 21 | 2020/6/20,70,0.6033333333333334,20.708333333333332,9.875,2.5,32.061688311688314 22 | 2020/6/21,70,0.4595833333333334,20.391304347826086,10.73913043478261,2.3000000000000003,34.86730660643704 23 | 2020/6/22,70,0.5004166666666666,18.875,8.041666666666666,2.829166666666667,26.10930735930736 24 | 2020/6/23,70,0.5913636363636364,19.52173913043478,8.91304347826087,1.0181818181818183,28.93845285149633 25 | 2020/6/24,70,0.6479166666666667,21.208333333333332,9.75,2.1708333333333334,31.655844155844157 26 | 2020/6/25,70,0.4529166666666667,21.125,10.0,1.7541666666666664,32.467532467532465 27 | 2020/6/26,70,0.45458333333333334,17.75,8.791666666666666,1.6791666666666665,28.54437229437229 28 | 2020/6/27,70,0.4795833333333333,20.208333333333332,10.208333333333334,2.433333333333333,33.1439393939394 29 | 2020/6/28,70,0.48499999999999993,16.625,8.75,9.416666666666666,28.40909090909091 30 | 2020/6/29,70,0.5770833333333334,19.043478260869566,10.08695652173913,1.4772727272727273,32.749858836815356 31 | 2020/6/30,70,0.59,20.681818181818183,9.863636363636363,1.1636363636363636,32.02479338842975 32 | -------------------------------------------------------------------------------- /time_train/time_4.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/4/1,70,0.5258333333333334,16.26086956521739,7.173913043478261,0.39545454545454545,23.29192546583851 3 | 2020/4/2,70,0.4116666666666667,16.916666666666668,8.208333333333334,1.5916666666666668,26.650432900432904 4 | 2020/4/3,70,0.4608333333333334,29.458333333333332,14.0,1.75,45.45454545454545 5 | 2020/4/4,70,0.4145833333333333,26.083333333333332,13.333333333333334,1.4363636363636365,43.29004329004329 6 | 2020/4/5,70,0.35125,34.958333333333336,16.0,1.9333333333333336,52.2962962962963 7 | 2020/4/6,70,0.43826086956521737,26.458333333333332,10.541666666666666,1.8666666666666665,34.226190476190474 8 | 2020/4/7,70,0.57,16.5,9.333333333333334,2.120833333333333,30.303030303030305 9 | 2020/4/8,70,0.5604166666666667,26.166666666666668,11.166666666666666,2.4583333333333335,36.25541125541125 10 | 2020/4/9,70,0.5776190476190476,28.75,14.789473684210526,1.6714285714285715,48.01777170198223 11 | 2020/4/10,70,0.4708695652173913,24.5,12.26086956521739,1.4173913043478261,39.808018068887634 12 | 2020/4/11,70,0.9416666666666668,31.333333333333332,19.708333333333332,2.9958333333333336,61.910493827160494 13 | 2020/4/12,70,0.6833333333333332,26.916666666666668,13.916666666666666,1.3624999999999998,45.183982683982684 14 | 2020/4/13,70,0.7527272727272728,41.13636363636363,23.869565217391305,3.490476190476191,72.69887278582931 15 | 2020/4/14,70,0.5408695652173913,41.59090909090909,24.5,1.05,74.33333333333334 16 | 2020/4/15,70,0.9495833333333333,43.75,27.875,1.8166666666666667,83.08333333333334 17 | 2020/4/16,70,0.8636363636363636,36.73913043478261,22.08695652173913,2.4363636363636365,68.07729468599034 18 | 2020/4/17,70,1.0395833333333333,38.5,22.541666666666668,2.1416666666666666,69.25617283950618 19 | 2020/4/18,70,0.8241666666666667,39.375,23.375,1.695833333333333,71.41666666666667 20 | 2020/4/19,70,0.9441666666666667,34.208333333333336,23.958333333333332,1.8916666666666668,72.92901234567901 21 | 2020/4/20,70,0.7008333333333333,27.59090909090909,17.142857142857142,1.7750000000000001,55.25925925925926 22 | 2020/4/21,70,0.9520833333333334,17.666666666666668,9.291666666666666,1.7375,30.167748917748916 23 | 2020/4/22,70,0.4170833333333334,6.666666666666667,3.0833333333333335,1.2666666666666666,10.01082251082251 24 | 2020/4/23,70,0.39083333333333337,17.0,12.375,1.0583333333333333,40.17857142857143 25 | 2020/4/24,70,0.3895652173913044,14.73913043478261,9.173913043478262,1.6565217391304348,29.785431959345004 26 | 2020/4/25,70,0.8308333333333332,19.291666666666668,9.5,1.2904761904761906,30.844155844155843 27 | 2020/4/26,70,0.81875,19.285714285714285,12.791666666666666,2.295833333333333,41.531385281385276 28 | 2020/4/27,70,0.5369565217391304,17.59090909090909,8.217391304347826,2.3956521739130436,26.679841897233203 29 | 2020/4/28,70,0.385,34.125,12.541666666666666,0.725,40.71969696969697 30 | 2020/4/29,70,0.42208333333333337,34.833333333333336,15.833333333333334,0.8041666666666667,51.864197530864196 31 | 2020/4/30,70,0.8325000000000001,36.75,20.708333333333332,1.6375,64.50308641975309 32 | -------------------------------------------------------------------------------- /time_train/time_9.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/9/1,70,0.7000000000000001,22.0,15.333333333333334,3.1130434782608694,49.78354978354979 3 | 2020/9/2,70,0.6529166666666666,29.541666666666668,18.208333333333332,1.9541666666666668,58.0216049382716 4 | 2020/9/3,70,0.80625,23.791666666666668,16.208333333333332,1.8458333333333332,52.83641975308642 5 | 2020/9/4,70,0.5233333333333333,24.5,15.333333333333334,1.1500000000000001,49.78354978354979 6 | 2020/9/5,70,0.6741666666666667,27.916666666666668,15.625,2.4181818181818184,51.324074074074076 7 | 2020/9/6,70,0.5695833333333334,30.708333333333332,17.958333333333332,0.1789473684210526,57.373456790123456 8 | 2020/9/7,70,0.5979166666666667,35.36363636363637,20.227272727272727,2.0842105263157897,63.255892255892256 9 | 2020/9/8,70,0.7941666666666668,41.18181818181818,26.818181818181817,2.3304347826086955,80.34343434343434 10 | 2020/9/9,70,0.8904545454545455,35.72727272727273,21.818181818181817,0.7666666666666667,67.38047138047138 11 | 2020/9/10,70,0.9420833333333333,32.708333333333336,20.5,1.5521739130434784,63.96296296296296 12 | 2020/9/11,70,0.8566666666666668,30.5,17.916666666666668,2.3521739130434782,57.26543209876544 13 | 2020/9/12,70,0.6370833333333333,,11.625,1.179166666666667,37.743506493506494 14 | 2020/9/13,70,0.46125,,5.208333333333333,0.4166666666666667,16.91017316017316 15 | 2020/9/14,70,0.5247619047619048,,4.869565217391305,2.1904761904761907,15.810276679841898 16 | 2020/9/15,70,0.7200000000000001,24.384615384615383,10.833333333333334,1.9869565217391305,35.17316017316018 17 | 2020/9/16,70,0.73375,22.583333333333332,13.541666666666666,1.9333333333333333,43.96645021645021 18 | 2020/9/17,70,0.8133333333333334,26.333333333333332,14.916666666666666,2.404166666666667,48.43073593073593 19 | 2020/9/18,70,0.7070833333333333,27.208333333333332,14.333333333333334,0.9190476190476191,46.53679653679654 20 | 2020/9/19,70,0.5595833333333333,18.375,8.958333333333334,1.535294117647059,29.085497835497836 21 | 2020/9/20,70,0.44708333333333333,12.916666666666666,6.625,2.158333333333333,21.50974025974026 22 | 2020/9/21,70,0.515,27.708333333333332,10.583333333333334,1.4750000000000003,34.36147186147186 23 | 2020/9/22,70,0.4483333333333333,26.61904761904762,10.136363636363637,2.775,32.91027154663519 24 | 2020/9/23,70,0.45083333333333336,23.875,9.666666666666666,2.7133333333333334,31.385281385281385 25 | 2020/9/24,70,0.5870833333333333,15.166666666666666,6.291666666666667,2.5083333333333333,20.42748917748918 26 | 2020/9/25,70,0.73,24.666666666666668,13.958333333333334,2.2529411764705882,45.31926406926407 27 | 2020/9/26,70,0.5045833333333333,20.541666666666668,10.375,2.7583333333333333,33.685064935064936 28 | 2020/9/27,70,0.39749999999999996,9.5,5.75,2.0173913043478264,18.66883116883117 29 | 2020/9/28,70,0.5979166666666665,10.375,5.0,3.6608695652173906,16.233766233766232 30 | 2020/9/29,70,0.57875,21.958333333333332,8.166666666666666,3.022727272727273,26.515151515151512 31 | 2020/9/30,70,0.7560869565217392,19.904761904761905,10.869565217391305,2.073913043478261,35.29079616036138 32 | -------------------------------------------------------------------------------- /time_train/time_1.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/1/1,70,0.3591666666666667,14.75,5.5,0.8041666666666667,17.857142857142858 3 | 2020/1/2,70,0.4895833333333333,17.458333333333332,6.333333333333333,0.3826086956521739,20.562770562770563 4 | 2020/1/3,70,0.7329166666666667,15.416666666666666,8.291666666666666,0.8916666666666667,26.92099567099567 5 | 2020/1/4,70,0.6304166666666667,16.625,8.875,1.3708333333333333,28.814935064935064 6 | 2020/1/5,70,0.3875,13.083333333333334,7.916666666666667,1.4541666666666668,25.703463203463205 7 | 2020/1/6,70,1.4256521739130434,46.166666666666664,28.083333333333332,2.0652173913043477,83.62345679012346 8 | 2020/1/7,70,1.2929166666666667,39.5,25.666666666666668,2.591666666666667,77.35802469135803 9 | 2020/1/8,70,0.6968181818181819,30.52173913043478,14.478260869565217,1.1545454545454545,47.007340485601354 10 | 2020/1/9,70,0.6270833333333333,31.208333333333332,12.958333333333334,1.3833333333333335,42.07251082251082 11 | 2020/1/10,70,0.8708333333333332,29.0,12.875,2.3874999999999997,41.80194805194805 12 | 2020/1/11,70,0.90875,30.375,16.875,1.55,54.56481481481482 13 | 2020/1/12,70,0.5437500000000001,19.416666666666668,10.041666666666666,1.3791666666666667,32.60281385281385 14 | 2020/1/13,70,0.555,29.772727272727273,15.0,2.2125,48.701298701298704 15 | 2020/1/14,70,0.7645833333333333,32.583333333333336,16.958333333333332,1.4791666666666667,54.78086419753086 16 | 2020/1/15,70,0.67625,23.625,13.5,1.6583333333333332,43.83116883116883 17 | 2020/1/16,70,1.0841666666666667,27.083333333333332,12.833333333333334,2.091666666666667,41.66666666666667 18 | 2020/1/17,70,0.77625,11.791666666666666,4.625,1.2249999999999999,15.016233766233766 19 | 2020/1/18,70,0.57,31.25,15.708333333333334,1.9375,51.54012345679013 20 | 2020/1/19,70,0.7720833333333332,30.083333333333332,18.416666666666668,0.44166666666666665,58.561728395061735 21 | 2020/1/20,70,0.8150000000000001,32.375,18.166666666666668,1.3458333333333332,57.91358024691358 22 | 2020/1/21,70,0.7431818181818183,35.78260869565217,24.347826086956523,1.1863636363636365,73.93880837359099 23 | 2020/1/22,70,1.6420833333333331,46.666666666666664,30.375,3.470833333333333,89.56481481481482 24 | 2020/1/23,70,1.1341666666666665,32.583333333333336,20.916666666666668,4.757142857142857,65.04320987654322 25 | 2020/1/24,70,0.7862499999999999,45.125,28.333333333333332,1.7708333333333333,84.27160493827161 26 | 2020/1/25,70,0.49124999999999996,12.25,7.416666666666667,1.5833333333333333,24.08008658008658 27 | 2020/1/26,70,0.36791666666666667,6.416666666666667,4.708333333333333,2.1958333333333333,15.286796536796535 28 | 2020/1/27,70,0.4083333333333334,10.217391304347826,4.260869565217392,1.2434782608695654,13.83399209486166 29 | 2020/1/28,70,0.425,12.208333333333334,7.416666666666667,2.1875,24.08008658008658 30 | 2020/1/29,70,0.69875,15.791666666666666,9.916666666666666,2.3958333333333335,32.196969696969695 31 | 2020/1/30,70,0.8995833333333333,29.666666666666668,26.954545454545453,2.0833333333333335,80.6969696969697 32 | 2020/1/31,70,0.66,38.333333333333336,30.956521739130434,0.6,91.07246376811594 33 | -------------------------------------------------------------------------------- /time_train/time_11.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/11/1,70,0.32083333333333336,22.833333333333332,10.791666666666666,0.8125,35.03787878787879 3 | 2020/11/2,70,0.43375,27.333333333333332,11.0,1.0416666666666667,35.714285714285715 4 | 2020/11/3,70,0.5958333333333333,66.29166666666667,28.291666666666668,1.4666666666666668,84.1635802469136 5 | 2020/11/4,70,0.4295833333333334,36.5,12.583333333333334,1.9541666666666666,40.85497835497836 6 | 2020/11/5,70,0.35652173913043483,22.91304347826087,9.391304347826088,1.3583333333333334,30.491247882552234 7 | 2020/11/6,70,0.38166666666666665,9.875,4.166666666666667,1.9958333333333336,13.528138528138529 8 | 2020/11/7,70,0.5720833333333334,19.208333333333332,9.541666666666666,1.9041666666666666,30.979437229437227 9 | 2020/11/8,70,0.4504166666666667,19.0,13.708333333333334,2.216666666666667,44.50757575757576 10 | 2020/11/9,70,0.37250000000000005,47.041666666666664,15.791666666666666,2.766666666666666,51.75617283950617 11 | 2020/11/10,70,0.3095652173913044,22.391304347826086,8.869565217391305,1.5913043478260867,28.797289666854883 12 | 2020/11/11,70,0.365,32.833333333333336,11.25,1.6375,36.52597402597402 13 | 2020/11/12,70,0.3791666666666667,21.833333333333332,11.833333333333334,1.0666666666666667,38.41991341991342 14 | 2020/11/13,70,0.4666666666666666,19.041666666666668,11.416666666666666,2.3083333333333336,37.06709956709957 15 | 2020/11/14,70,0.2925,21.208333333333332,10.5,0.8583333333333334,34.09090909090909 16 | 2020/11/15,70,0.30583333333333335,21.833333333333332,9.875,1.1458333333333333,32.061688311688314 17 | 2020/11/16,70,0.36166666666666664,16.708333333333332,6.75,1.2916666666666667,21.915584415584416 18 | 2020/11/17,70,0.3687500000000001,17.375,7.25,2.079166666666667,23.538961038961038 19 | 2020/11/18,70,0.8491666666666667,19.75,10.291666666666666,2.9958333333333336,33.41450216450216 20 | 2020/11/19,70,0.7708333333333334,22.17391304347826,13.130434782608695,1.945833333333333,42.631281761716544 21 | 2020/11/20,70,0.7883333333333334,24.0,13.166666666666666,2.466666666666667,42.74891774891775 22 | 2020/11/21,70,0.5954166666666666,19.625,9.333333333333334,2.454166666666667,30.303030303030305 23 | 2020/11/22,70,0.7016666666666668,18.166666666666668,9.041666666666666,1.2041666666666666,29.356060606060606 24 | 2020/11/23,70,0.43956521739130433,15.956521739130435,7.391304347826087,1.526086956521739,23.997741389045736 25 | 2020/11/24,70,0.4133333333333334,22.375,11.0,1.2416666666666667,35.714285714285715 26 | 2020/11/25,70,0.44875,17.733333333333334,8.083333333333334,1.8476190476190475,26.244588744588746 27 | 2020/11/26,70,0.4666666666666666,18.2,9.916666666666666,1.25,32.196969696969695 28 | 2020/11/27,70,0.5533333333333333,24.91304347826087,12.083333333333334,1.6458333333333333,39.231601731601735 29 | 2020/11/28,70,0.46166666666666667,15.208333333333334,6.916666666666667,2.466666666666667,22.456709956709958 30 | 2020/11/29,70,0.33,11.75,6.791666666666667,2.466666666666667,22.0508658008658 31 | 2020/11/30,70,0.41125000000000006,14.458333333333334,8.166666666666666,2.3166666666666664,26.515151515151512 32 | -------------------------------------------------------------------------------- /time_train/time_12.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/12/1,70,0.4383333333333333,18.652173913043477,10.652173913043478,2.2458333333333336,34.58498023715415 3 | 2020/12/2,70,0.4666666666666666,21.541666666666668,9.25,1.9375,30.032467532467532 4 | 2020/12/3,70,0.55625,14.708333333333334,8.416666666666666,1.7708333333333333,27.326839826839823 5 | 2020/12/4,70,0.49041666666666667,11.0,7.041666666666667,1.7291666666666667,22.862554112554115 6 | 2020/12/5,70,0.3479166666666667,8.73913043478261,7.833333333333333,1.8458333333333332,25.432900432900432 7 | 2020/12/6,70,0.34541666666666665,6.666666666666667,4.6521739130434785,1.9416666666666667,15.104460756634671 8 | 2020/12/7,70,0.5069565217391304,7.0,4.375,1.5086956521739132,14.204545454545455 9 | 2020/12/8,70,0.5379166666666667,6.625,4.25,2.5208333333333335,13.798701298701298 10 | 2020/12/9,70,0.5345833333333333,5.681818181818182,4.833333333333333,2.204166666666667,15.692640692640692 11 | 2020/12/10,70,0.73875,7.375,5.958333333333333,0.9625,19.345238095238095 12 | 2020/12/11,70,0.5952173913043478,8.826086956521738,5.434782608695652,1.3772727272727272,17.64539808018069 13 | 2020/12/12,70,0.7174999999999999,35.708333333333336,23.791666666666668,1.7750000000000001,72.49691358024693 14 | 2020/12/13,70,0.89125,38.208333333333336,26.208333333333332,1.9000000000000001,78.76234567901236 15 | 2020/12/14,70,0.5770833333333334,11.181818181818182,8.708333333333334,2.345833333333333,28.273809523809526 16 | 2020/12/15,70,0.4479166666666667,6.5,5.913043478260869,1.0041666666666667,19.198193111236588 17 | 2020/12/16,70,0.41291666666666665,6.458333333333333,5.583333333333333,2.1666666666666665,18.127705627705627 18 | 2020/12/17,70,0.45,6.208333333333333,5.958333333333333,1.6583333333333334,19.345238095238095 19 | 2020/12/18,70,0.9441666666666667,12.416666666666666,7.875,2.125,25.568181818181817 20 | 2020/12/19,70,0.4945833333333334,9.125,7.541666666666667,1.7083333333333333,24.485930735930737 21 | 2020/12/20,70,0.33416666666666667,8.25,6.833333333333333,1.1541666666666666,22.186147186147185 22 | 2020/12/21,70,0.35523809523809524,8.434782608695652,7.130434782608695,2.2285714285714286,23.150762281197064 23 | 2020/12/22,70,0.4320833333333334,11.956521739130435,9.125,1.3999999999999997,29.626623376623375 24 | 2020/12/23,70,1.0145833333333332,19.625,13.25,1.7708333333333333,43.01948051948052 25 | 2020/12/24,70,0.9216666666666667,34.125,23.625,2.716666666666667,72.06481481481481 26 | 2020/12/25,70,0.4695833333333333,33.291666666666664,18.583333333333332,2.379166666666667,58.99382716049382 27 | 2020/12/26,70,0.7837500000000001,20.291666666666668,12.875,2.5625,41.80194805194805 28 | 2020/12/27,70,0.7591666666666667,22.958333333333332,15.166666666666666,1.05,49.24242424242424 29 | 2020/12/28,70,0.4930434782608696,28.0,16.695652173913043,0.6130434782608696,54.09983896940419 30 | 2020/12/29,70,1.20375,36.375,20.041666666666668,2.225,62.7746913580247 31 | 2020/12/30,70,0.66625,31.625,17.083333333333332,1.9791666666666667,55.10493827160494 32 | 2020/12/31,70,0.54875,37.27272727272727,17.869565217391305,1.95,57.14331723027375 33 | -------------------------------------------------------------------------------- /time_train/time_8.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/8/1,70,0.28958333333333336,8.0,1.8333333333333333,1.7374999999999998,7.407407407407407 3 | 2020/8/2,70,0.3133333333333333,9.708333333333334,3.7916666666666665,2.6,12.31060606060606 4 | 2020/8/3,70,0.5691304347826087,9.826086956521738,4.391304347826087,3.0454545454545454,14.257481648785996 5 | 2020/8/4,70,1.0287499999999998,21.666666666666668,10.375,2.5250000000000004,33.685064935064936 6 | 2020/8/5,70,0.9254166666666667,17.0,7.541666666666667,2.15,24.485930735930737 7 | 2020/8/6,70,0.5291304347826087,21.541666666666668,10.5,3.170833333333333,34.09090909090909 8 | 2020/8/7,70,0.6270833333333333,23.333333333333332,11.833333333333334,2.9875000000000003,38.41991341991342 9 | 2020/8/8,70,0.5458333333333333,19.5,10.541666666666666,2.795833333333333,34.226190476190474 10 | 2020/8/9,70,0.5704166666666667,16.416666666666668,7.666666666666667,0.9499999999999998,24.891774891774894 11 | 2020/8/10,70,0.7580000000000001,21.571428571428573,10.421052631578947,1.6,33.83458646616541 12 | 2020/8/11,70,0.8262499999999999,17.958333333333332,8.083333333333334,1.2458333333333333,26.244588744588746 13 | 2020/8/12,70,0.7658333333333333,21.083333333333332,9.25,2.191666666666667,30.032467532467532 14 | 2020/8/13,70,0.7304166666666667,22.125,10.333333333333334,2.0826086956521737,33.54978354978355 15 | 2020/8/14,70,0.645,15.75,5.291666666666667,1.7791666666666668,17.18073593073593 16 | 2020/8/15,70,0.6583333333333333,16.75,8.291666666666666,2.4458333333333333,26.92099567099567 17 | 2020/8/16,70,0.4625000000000001,17.083333333333332,10.583333333333334,2.920833333333333,34.36147186147186 18 | 2020/8/17,70,0.24208333333333334,5.875,2.0833333333333335,1.3791666666666667,6.764069264069264 19 | 2020/8/18,70,0.2858333333333334,5.125,1.0416666666666667,1.6458333333333333,4.74537037037037 20 | 2020/8/19,70,0.3458333333333334,21.0,13.583333333333334,2.1,44.1017316017316 21 | 2020/8/20,70,0.3347826086956522,28.043478260869566,21.5,3.2,66.55555555555556 22 | 2020/8/21,70,0.27458333333333335,12.291666666666666,,2.8166666666666664,11.381172839506172 23 | 2020/8/22,70,0.40291666666666665,8.291666666666666,,2.1374999999999997,7.677469135802468 24 | 2020/8/23,70,0.3129166666666667,10.166666666666666,,2.941666666666667,9.413580246913579 25 | 2020/8/24,70,0.6233333333333334,21.52173913043478,11.777777777777779,2.1500000000000004,38.23953823953824 26 | 2020/8/25,70,0.53625,23.25,12.333333333333334,3.6869565217391305,40.04329004329004 27 | 2020/8/26,70,0.56625,18.458333333333332,10.416666666666666,1.6130434782608694,33.82034632034632 28 | 2020/8/27,70,0.5995833333333334,15.291666666666666,7.875,1.4916666666666665,25.568181818181817 29 | 2020/8/28,70,0.9083333333333332,17.375,7.916666666666667,2.9291666666666667,25.703463203463205 30 | 2020/8/29,70,0.4716666666666667,15.833333333333334,7.708333333333333,1.6541666666666668,25.027056277056275 31 | 2020/8/30,70,0.28958333333333336,11.25,4.541666666666667,0.8666666666666667,14.745670995670997 32 | 2020/8/31,70,0.7039130434782608,16.82608695652174,9.695652173913043,3.0090909090909093,31.479390175042347 33 | -------------------------------------------------------------------------------- /time_train/time_7.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/7/1,70,0.6745833333333332,21.125,8.541666666666666,1.4083333333333332,27.73268398268398 3 | 2020/7/2,70,0.6741666666666667,18.583333333333332,7.833333333333333,2.795833333333333,25.432900432900432 4 | 2020/7/3,70,0.7441666666666666,20.208333333333332,10.125,1.4625000000000001,32.87337662337662 5 | 2020/7/4,70,0.5629166666666667,20.625,10.916666666666666,1.2000000000000002,35.44372294372294 6 | 2020/7/5,70,0.48363636363636364,21.26086956521739,10.217391304347826,1.2444444444444445,33.1733483907397 7 | 2020/7/6,70,0.6075,23.583333333333332,11.666666666666666,2.845833333333333,37.878787878787875 8 | 2020/7/7,70,0.6816666666666666,21.583333333333332,10.5,1.2958333333333332,34.09090909090909 9 | 2020/7/8,70,0.5783333333333333,20.333333333333332,8.5,1.5333333333333332,27.597402597402596 10 | 2020/7/9,70,0.6095833333333333,20.083333333333332,8.333333333333334,1.2291666666666665,27.056277056277057 11 | 2020/7/10,70,0.64625,21.291666666666668,9.75,2.1545454545454543,31.655844155844157 12 | 2020/7/11,70,0.5591666666666667,20.583333333333332,10.208333333333334,2.7208333333333337,33.1439393939394 13 | 2020/7/12,70,0.5133333333333333,19.375,9.333333333333334,0.875,30.303030303030305 14 | 2020/7/13,70,0.6662500000000001,22.708333333333332,12.166666666666666,2.595652173913044,39.5021645021645 15 | 2020/7/14,70,0.5375,19.565217391304348,10.521739130434783,2.75,34.161490683229815 16 | 2020/7/15,70,0.6241666666666666,22.347826086956523,12.833333333333334,1.2625,41.66666666666667 17 | 2020/7/16,70,0.53125,18.25,8.125,1.7083333333333333,26.37987012987013 18 | 2020/7/17,70,0.5325,15.75,6.625,2.2874999999999996,21.50974025974026 19 | 2020/7/18,70,0.45333333333333337,15.875,5.833333333333333,1.7833333333333332,18.939393939393938 20 | 2020/7/19,70,0.6166666666666667,20.666666666666668,11.041666666666666,2.504166666666667,35.849567099567096 21 | 2020/7/20,70,0.6530434782608695,18.666666666666668,8.75,1.8434782608695652,28.40909090909091 22 | 2020/7/21,70,0.7308333333333333,18.708333333333332,9.458333333333334,0.9,30.70887445887446 23 | 2020/7/22,70,0.6879166666666667,21.125,10.833333333333334,1.9750000000000003,35.17316017316018 24 | 2020/7/23,70,0.7322727272727273,19.5,9.818181818181818,3.076190476190476,31.877213695395515 25 | 2020/7/24,70,0.7308333333333333,20.708333333333332,9.375,3.1958333333333333,30.43831168831169 26 | 2020/7/25,70,0.6341666666666668,16.708333333333332,7.333333333333333,0.3333333333333333,23.809523809523807 27 | 2020/7/26,70,0.5754166666666666,16.208333333333332,7.75,1.9333333333333336,25.162337662337663 28 | 2020/7/27,70,0.7241666666666667,18.08695652173913,7.608695652173913,2.1782608695652175,24.703557312252965 29 | 2020/7/28,70,0.6910526315789474,15.421052631578947,6.105263157894737,2.6473684210526316,19.822282980177718 30 | 2020/7/29,70,0.3475,10.0,2.2916666666666665,1.0818181818181818,9.25925925925926 31 | 2020/7/30,70,0.27208333333333334,5.958333333333333,2.0833333333333335,0.3368421052631579,6.764069264069264 32 | 2020/7/31,70,0.3045833333333334,6.541666666666667,1.9166666666666667,1.1125,6.222943722943723 33 | -------------------------------------------------------------------------------- /time_train/time_10.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/10/1,70,0.48625,30.125,13.291666666666666,1.1333333333333335,43.154761904761905 3 | 2020/10/2,70,0.3679166666666667,28.333333333333332,13.583333333333334,1.4291666666666665,44.1017316017316 4 | 2020/10/3,70,0.3629166666666667,15.833333333333334,7.5,2.3375,24.350649350649352 5 | 2020/10/4,70,0.45416666666666666,18.25,8.041666666666666,1.3791666666666667,26.10930735930736 6 | 2020/10/5,70,0.48500000000000004,24.0,11.26086956521739,1.0869565217391304,36.56126482213438 7 | 2020/10/6,70,0.4495833333333334,32.541666666666664,11.041666666666666,-0.035714285714285705,35.849567099567096 8 | 2020/10/7,70,0.5029166666666667,29.083333333333332,10.291666666666666,1.7727272727272727,33.41450216450216 9 | 2020/10/8,70,0.66,33.833333333333336,12.416666666666666,3.857142857142857,40.31385281385281 10 | 2020/10/9,70,0.5566666666666666,25.291666666666668,11.208333333333334,2.3666666666666667,36.39069264069264 11 | 2020/10/10,70,0.3575,25.791666666666668,10.083333333333334,2.441666666666667,32.73809523809524 12 | 2020/10/11,70,0.3695833333333333,11.958333333333334,5.083333333333333,0.7291666666666666,16.504329004329005 13 | 2020/10/12,70,0.37541666666666673,14.833333333333334,4.5,1.4,14.61038961038961 14 | 2020/10/13,70,0.37458333333333327,13.5,8.083333333333334,0.625,26.244588744588746 15 | 2020/10/14,70,0.45541666666666664,31.625,12.333333333333334,2.0,40.04329004329004 16 | 2020/10/15,70,0.43086956521739134,31.26086956521739,12.136363636363637,1.9473684210526316,39.403778040141674 17 | 2020/10/16,70,0.47208333333333324,30.5,13.166666666666666,1.7458333333333336,42.74891774891775 18 | 2020/10/17,70,0.4454166666666666,25.75,9.708333333333334,0.9249999999999999,31.520562770562773 19 | 2020/10/18,70,0.38916666666666666,24.0,12.0,2.4875000000000003,38.96103896103896 20 | 2020/10/19,70,0.48,28.833333333333332,13.541666666666666,3.6958333333333333,43.96645021645021 21 | 2020/10/20,70,0.46208333333333335,28.782608695652176,13.26086956521739,2.795833333333333,43.05477131564088 22 | 2020/10/21,70,0.45166666666666666,12.583333333333334,6.458333333333333,2.0541666666666667,20.968614718614717 23 | 2020/10/22,70,0.66375,9.666666666666666,5.958333333333333,1.5625,19.345238095238095 24 | 2020/10/23,70,0.61625,57.875,21.666666666666668,1.0666666666666667,66.98765432098766 25 | 2020/10/24,70,0.31,47.333333333333336,13.875,1.5333333333333332,45.048701298701296 26 | 2020/10/25,70,0.2808333333333333,21.708333333333332,7.0,0.4791666666666667,22.727272727272727 27 | 2020/10/26,70,0.3582608695652174,20.875,8.083333333333334,1.9826086956521736,26.244588744588746 28 | 2020/10/27,70,0.3825,24.041666666666668,11.5,1.7695652173913046,37.33766233766234 29 | 2020/10/28,70,0.37749999999999995,26.208333333333332,14.708333333333334,2.1708333333333334,47.75432900432901 30 | 2020/10/29,70,0.4617391304347826,27.82608695652174,13.217391304347826,2.859090909090909,42.913608130999435 31 | 2020/10/30,70,0.43541666666666673,38.958333333333336,14.25,2.9458333333333333,46.26623376623377 32 | 2020/10/31,70,0.3545833333333333,27.5,10.791666666666666,1.5041666666666667,35.03787878787879 33 | -------------------------------------------------------------------------------- /time_train/time_5.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/5/1,70,0.97625,42.0,25.75,2.004166666666667,77.57407407407408 3 | 2020/5/2,70,0.9,40.0,24.666666666666668,3.6,74.76543209876544 4 | 2020/5/3,70,0.6829166666666667,26.916666666666668,17.208333333333332,2.125,55.42901234567901 5 | 2020/5/4,70,1.0365217391304349,32.541666666666664,16.666666666666668,1.908695652173913,54.0246913580247 6 | 2020/5/5,70,0.7725,37.25,23.541666666666668,1.3833333333333335,71.84876543209877 7 | 2020/5/6,70,0.7545833333333333,24.666666666666668,12.125,1.991666666666667,39.366883116883116 8 | 2020/5/7,70,0.7566666666666667,19.625,11.916666666666666,2.358333333333333,38.69047619047619 9 | 2020/5/8,70,0.8091666666666667,20.434782608695652,11.826086956521738,1.1772727272727272,38.396386222473176 10 | 2020/5/9,70,0.6216666666666667,19.166666666666668,10.916666666666666,2.2041666666666666,35.44372294372294 11 | 2020/5/10,70,0.6074999999999999,21.130434782608695,14.041666666666666,1.4958333333333333,45.589826839826834 12 | 2020/5/11,70,0.5820833333333333,18.166666666666668,13.695652173913043,2.05,44.466403162055336 13 | 2020/5/12,70,0.5775,21.375,14.791666666666666,2.2041666666666666,48.02489177489177 14 | 2020/5/13,70,0.55375,44.21739130434783,27.041666666666668,1.3791666666666667,80.92283950617285 15 | 2020/5/14,70,0.8504166666666665,34.0,23.125,1.0999999999999999,70.76851851851852 16 | 2020/5/15,70,1.0256521739130435,34.65217391304348,23.217391304347824,1.190909090909091,71.00805152979066 17 | 2020/5/16,70,0.6979166666666666,23.166666666666668,13.958333333333334,2.254166666666667,45.31926406926407 18 | 2020/5/17,70,0.5341666666666666,15.125,6.875,1.6083333333333332,22.321428571428573 19 | 2020/5/18,70,0.7758333333333333,17.875,9.173913043478262,2.891666666666667,29.785431959345004 20 | 2020/5/19,70,0.8420833333333334,21.666666666666668,12.541666666666666,0.7086956521739131,40.71969696969697 21 | 2020/5/20,70,0.6283333333333333,19.125,11.041666666666666,0.691304347826087,35.849567099567096 22 | 2020/5/21,70,0.7516666666666666,13.173913043478262,5.478260869565218,2.4434782608695653,17.786561264822137 23 | 2020/5/22,70,0.96125,8.083333333333334,4.916666666666667,1.95,15.963203463203463 24 | 2020/5/23,70,0.5141666666666667,6.916666666666667,4.708333333333333,1.3666666666666665,15.286796536796535 25 | 2020/5/24,70,0.4000000000000001,15.666666666666666,7.166666666666667,2.0416666666666665,23.26839826839827 26 | 2020/5/25,70,0.6754166666666667,22.291666666666668,10.916666666666666,1.6958333333333335,35.44372294372294 27 | 2020/5/26,70,0.8552173913043477,19.333333333333332,9.375,2.4173913043478263,30.43831168831169 28 | 2020/5/27,70,0.45875,12.541666666666666,5.0,2.529166666666667,16.233766233766232 29 | 2020/5/28,70,0.6243478260869565,7.956521739130435,4.409090909090909,2.2217391304347824,14.315230224321134 30 | 2020/5/29,70,1.1056521739130434,14.91304347826087,8.956521739130435,2.2347826086956526,29.07961603613778 31 | 2020/5/30,70,0.8937500000000002,21.291666666666668,11.208333333333334,1.6624999999999999,36.39069264069264 32 | 2020/5/31,70,0.555,15.666666666666666,7.458333333333333,1.7708333333333333,24.215367965367964 33 | -------------------------------------------------------------------------------- /time_train/time_3.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,SiteId,CO,PM10,PM25,SO2,AQI 2 | 2020/3/1,70,0.7212500000000001,23.958333333333332,16.833333333333332,0.5541666666666667,54.456790123456784 3 | 2020/3/2,70,0.4283333333333333,19.833333333333332,9.0,1.4124999999999999,29.22077922077922 4 | 2020/3/3,70,0.5730434782608697,23.391304347826086,11.478260869565217,1.7590909090909093,37.267080745341616 5 | 2020/3/4,70,0.5366666666666667,11.25,7.166666666666667,1.2208333333333334,23.26839826839827 6 | 2020/3/5,70,0.43500000000000005,20.541666666666668,13.375,0.7041666666666666,43.425324675324674 7 | 2020/3/6,70,0.7491666666666666,18.625,10.416666666666666,2.1041666666666665,33.82034632034632 8 | 2020/3/7,70,1.08625,34.875,21.833333333333332,1.1125,67.41975308641975 9 | 2020/3/8,70,0.48291666666666666,16.166666666666668,9.0,0.9916666666666667,29.22077922077922 10 | 2020/3/9,70,0.9179166666666666,38.75,24.5,2.841666666666667,74.33333333333334 11 | 2020/3/10,70,0.6178260869565217,14.826086956521738,9.08695652173913,1.2521739130434781,29.503105590062113 12 | 2020/3/11,70,0.46166666666666667,41.416666666666664,19.125,0.5208333333333334,60.39814814814815 13 | 2020/3/12,70,1.3787500000000001,25.083333333333332,16.041666666666668,2.4875000000000003,52.40432098765432 14 | 2020/3/13,70,1.1865217391304348,17.08695652173913,11.347826086956522,1.735,36.843591191417275 15 | 2020/3/14,70,0.51625,26.75,14.416666666666666,1.6291666666666664,46.807359307359306 16 | 2020/3/15,70,0.40625,49.041666666666664,17.166666666666668,1.5041666666666664,55.320987654320994 17 | 2020/3/16,70,0.41958333333333336,39.458333333333336,14.708333333333334,3.2875,47.75432900432901 18 | 2020/3/17,70,0.8979166666666666,46.416666666666664,22.208333333333332,1.4000000000000001,68.39197530864197 19 | 2020/3/18,70,1.2866666666666666,49.541666666666664,32.166666666666664,3.483333333333334,94.20987654320987 20 | 2020/3/19,70,1.3366666666666667,36.416666666666664,28.75,2.733333333333333,85.35185185185185 21 | 2020/3/20,70,0.8468181818181819,37.43478260869565,24.652173913043477,0.6833333333333333,74.72785829307568 22 | 2020/3/21,70,1.0929166666666668,43.0,24.041666666666668,2.470833333333333,73.14506172839506 23 | 2020/3/22,70,0.86,39.708333333333336,25.333333333333332,0.8958333333333334,76.49382716049382 24 | 2020/3/23,70,0.4995833333333333,39.833333333333336,20.041666666666668,2.5375,62.7746913580247 25 | 2020/3/24,70,0.44875,31.041666666666668,12.25,1.1791666666666665,39.77272727272727 26 | 2020/3/25,70,1.1141666666666665,35.08695652173913,21.08695652173913,2.766666666666667,65.48470209339774 27 | 2020/3/26,70,1.0204761904761905,29.47826086956522,19.636363636363637,2.195,61.72390572390573 28 | 2020/3/27,70,0.9404166666666667,35.166666666666664,23.041666666666668,1.4333333333333333,70.55246913580248 29 | 2020/3/28,70,0.5145833333333334,9.041666666666666,5.333333333333333,1.7041666666666664,17.316017316017316 30 | 2020/3/29,70,0.34708333333333335,18.666666666666668,6.75,1.9041666666666668,21.915584415584416 31 | 2020/3/30,70,0.8800000000000001,18.208333333333332,10.041666666666666,2.795652173913044,32.60281385281385 32 | 2020/3/31,70,0.810952380952381,17.565217391304348,7.260869565217392,3.645454545454545,23.5742518351214 33 | -------------------------------------------------------------------------------- /AQI_label.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Thu Jan 7 14:08:32 2021 4 | 5 | @author: ray 6 | """ 7 | 8 | import numpy as np 9 | import pandas as pd 10 | result_all = pd.DataFrame() 11 | for month_num in range(1,13): 12 | df_data = pd.read_csv('./time/time_'+ str(month_num) +'.csv', index_col= False) 13 | new_frame = pd.read_csv('train_frame.csv') 14 | # df_data_drop = df_data[(True-df_data.isin(['x']))] 15 | result = pd.DataFrame() 16 | 17 | days = int(df_data.shape[0]/11) 18 | # for num, col in enumerate(df_data.iloc[:,6]): 19 | data_temp = pd.DataFrame() 20 | AQI_result = np.zeros(shape=[6, days]) 21 | 22 | for day_num in range(days): 23 | data_temp = df_data.iloc[day_num*11:(day_num*11)+11, :].reset_index() 24 | ItemId = data_temp["ItemId"] 25 | for Id_num in range(11): 26 | if(ItemId[Id_num]==3): 27 | O3 = data_temp.iloc[Id_num, 8:].astype(float) 28 | mean_O3 = O3.mean() 29 | if(mean_O3 < 125): 30 | AQI_O3 = 0 31 | if(mean_O3 >= 125 and mean_O3 <= 164): 32 | AQI_O3 = (mean_O3-125)*(49/39)+101 33 | if(mean_O3 > 164): 34 | AQI_O3 = (mean_O3-165)*(49/39)+151 35 | 36 | if(ItemId[Id_num]==33): 37 | PM25 = data_temp.iloc[Id_num,8:].astype(float) 38 | mean_PM25 = PM25.mean() 39 | if(mean_PM25 < 15.5): 40 | AQI_PM25 = (mean_PM25)*(50/15.4) 41 | if(mean_PM25 >=15.5 and mean_PM25 <35.4): 42 | AQI_PM25 = (mean_PM25-15.5)*(49/18.9)+51 43 | if(mean_PM25 >=35.4 and mean_PM25 <54.4): 44 | AQI_PM25 = (mean_PM25-35.5)*(49/18.9)+101 45 | if(mean_PM25 >=54.4): 46 | AQI_PM25 = (mean_PM25-54.5)*(49/95.9)+151 47 | 48 | if(ItemId[Id_num]==4): 49 | PM10 = data_temp.iloc[Id_num, 8:].astype(float) 50 | mean_PM10 = PM10.mean() 51 | if(mean_PM10 < 54): 52 | AQI_PM10 = (mean_PM10)*(50/54) 53 | if(mean_PM10 >=54 and mean_PM10 <125): 54 | AQI_PM10 = (mean_PM25-54)*(49/70)+51 55 | if(mean_PM10 >=125 and mean_PM10 <254): 56 | AQI_PM10 = (mean_PM25-125)*(49/128)+101 57 | if(mean_PM10 >=254): 58 | AQI_PM10 = (mean_PM25-254)*(49/99)+151 59 | 60 | if(ItemId[Id_num]==2): 61 | CO = data_temp.iloc[Id_num, 8:].astype(float) 62 | mean_CO = CO.mean() 63 | if(mean_CO < 4.4): 64 | AQI_CO = (mean_CO)*(50/4.4) 65 | if(mean_CO >=4.4 and mean_CO <9.4): 66 | AQI_CO = (mean_CO-4.4)*(49/4.9)+51 67 | if(mean_CO >=9.4 and mean_CO <12.4): 68 | AQI_CO = (mean_CO-9.4)*(49/2.9)+101 69 | if(mean_CO >=12.4): 70 | AQI_CO = (mean_CO-12.4)*(49/2.9)+151 71 | 72 | if(ItemId[Id_num]==1): 73 | SO2 = data_temp.iloc[Id_num, 8:].astype(float) 74 | mean_SO2 = SO2.mean() 75 | if(mean_SO2 < 35): 76 | AQI_SO2 = (mean_SO2)*(50/35) 77 | if(mean_SO2 >=35 and mean_SO2 <75): 78 | AQI_SO2 = (mean_SO2-35)*(49/39)+51 79 | if(mean_SO2 >=75 and mean_SO2 <185): 80 | AQI_SO2 = (mean_SO2-75)*(49/109)+101 81 | if(mean_SO2 >=185): 82 | AQI_SO2 = (mean_SO2-185)*(49/118)+151 83 | 84 | if(ItemId[Id_num]==144): 85 | wind_direct = data_temp.iloc[Id_num, 8:].astype(float) 86 | mean_wind_direct = wind_direct.mean() 87 | 88 | if(ItemId[Id_num]==14): 89 | temper = data_temp.iloc[Id_num, 8:].astype(float) 90 | mean_temper = temper.mean() 91 | 92 | if(ItemId[Id_num]==23): 93 | rain = data_temp.iloc[Id_num, 8:].astype(float) 94 | mean_rain = rain.sum() 95 | 96 | if(ItemId[Id_num]==38): 97 | humidity = data_temp.iloc[Id_num, 8:].astype(float) 98 | mean_humidity = humidity.mean() 99 | 100 | if(ItemId[Id_num]==144): 101 | wind_speed = data_temp.iloc[Id_num, 8:].astype(float) 102 | mean_wind_speed = wind_speed.mean() 103 | 104 | temp_AQI = np.max([AQI_CO, AQI_O3, AQI_PM10, AQI_PM25, AQI_SO2]) 105 | data_temp_result = np.array([mean_wind_direct, mean_temper, mean_rain, mean_humidity, mean_wind_speed, temp_AQI]) 106 | AQI_result[:, day_num] = data_temp_result.T 107 | new_frame.iloc[0, 2:8] = data_temp_result 108 | new_frame.iloc[0, 0] = data_temp.iloc[0, 7] 109 | result = pd.concat([result, new_frame], axis=0) 110 | 111 | result.to_csv('./time_train/time_'+ str(month_num) +'.csv', index = False) 112 | result_all = pd.concat([result_all, result], axis=0) 113 | 114 | result_all.to_csv('./time_train/train_all.csv', index = False) 115 | 116 | frame_3day = pd.read_csv('train_frame_3day.csv') 117 | result_train = pd.DataFrame() 118 | 119 | for train_num in range(363): 120 | # col1 = pd.DataFrame(result_all.iloc[train_num, 2:8]).T 121 | # col2 = pd.DataFrame(result_all.iloc[train_num+1, 2:8]).T 122 | # col3 = pd.DataFrame(result_all.iloc[train_num+2, 2:8]).T 123 | # label = pd.DataFrame(result_all.iloc[train_num+3, 7]) 124 | 125 | # result_train_temp = pd.concat([col1, col2, col3, label], axis=1) 126 | # result_train = pd.concat([result_train, result_train_temp], axis=0) 127 | 128 | frame_3day.iloc[0, :6] = result_all.iloc[train_num, 2:8].values 129 | frame_3day.iloc[0, 6:12] = result_all.iloc[train_num + 1, 2:8].values 130 | frame_3day.iloc[0, 12:18]= result_all.iloc[train_num + 2, 2:8].values 131 | frame_3day.iloc[0, 18] = result_all.iloc[train_num + 3, 7] 132 | result_train = pd.concat([result_train, frame_3day], axis=0) 133 | 134 | result_train.to_csv('./time_train/train_3day.csv', index = False) 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /space_train/space_2.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/2/1,69.7962962962963,68.17592592592592,68.71604938271605,81.57098765432099,102.72839506172839,101.43209876543209,91.40123456790124,52.94444444444444,57.69753086419753,57.91358024691358,57.26543209876544,49.6482683982684 3 | 2020/2/2,45.183982683982684,52.2962962962963,67.41975308641975,78.43827160493828,98.6388888888889,116.3395061728395,91.29320987654322,28.40909090909091,36.52597402597402,31.114718614718615,46.53679653679654,30.979437229437227 4 | 2020/2/3,46.40151515151515,43.560606060606055,46.942640692640694,48.29545454545455,66.98765432098766,69.47222222222223,73.36111111111111,20.42748917748918,24.756493506493506,22.186147186147185,48.566017316017316,31.926406926406926 5 | 2020/2/4,33.82034632034632,38.14935064935065,41.531385281385276,45.72510822510823,68.5,63.20679012345679,75.52160493827161,24.350649350649352,18.3982683982684,12.581168831168831,36.52597402597402,33.685064935064936 6 | 2020/2/5,36.93181818181818,29.22077922077922,22.591991341991342,25.974025974025974,48.836580086580085,56.293209876543216,78.33024691358025,22.727272727272727,15.963203463203463,22.727272727272727,35.03787878787879,33.1439393939394 7 | 2020/2/6,38.01406926406926,35.714285714285715,52.40432098765432,45.99567099567099,68.39197530864197,66.87962962962963,72.60493827160494,18.533549783549784,17.045454545454547,28.54437229437229,36.93181818181818,28.003246753246753 8 | 2020/2/7,16.91017316017316,23.133116883116884,21.645021645021647,18.939393939393938,42.884199134199136,46.942640692640694,68.5,35.714285714285715,16.098484848484848,11.769480519480519,20.29220779220779,24.485930735930737 9 | 2020/2/8,37.06709956709957,36.39069264069264,34.36147186147186,35.17316017316018,54.99691358024692,58.34567901234568,72.17283950617285,17.857142857142858,24.215367965367964,28.003246753246753,38.69047619047619,34.9025974025974 10 | 2020/2/9,52.18827160493827,48.566017316017316,43.154761904761905,47.61904761904761,66.98765432098766,68.60802469135803,83.40740740740742,16.233766233766232,26.515151515151512,37.06709956709957,55.53703703703704,53.26851851851852 11 | 2020/2/10,71.63271604938271,75.08950617283952,84.70370370370371,74.11728395061729,97.77469135802468,87.51234567901236,93.66975308641976,35.17316017316018,46.672077922077925,63.20679012345679,72.17283950617285,57.04938271604938 12 | 2020/2/11,100.36728395061729,106.50925925925927,101.01543209876544,114.82716049382717,152.21350364963504,140.53703703703704,107.0493827160494,29.22077922077922,34.09090909090909,42.884199134199136,103.7006172839506,63.20679012345679 13 | 2020/2/12,93.99382716049385,93.12962962962963,97.01851851851853,109.20987654320987,135.1358024691358,102.31172839506172,63.31481481481482,24.62121212121212,28.814935064935064,28.95021645021645,97.45061728395062,76.70987654320989 14 | 2020/2/13,80.70679012345678,85.45987654320989,68.9320987654321,87.2962962962963,77.03395061728395,55.64506172839506,37.47294372294372,25.432900432900432,30.979437229437227,42.74891774891775,86.75617283950618,55.21296296296296 15 | 2020/2/14,64.82716049382717,65.58333333333334,49.107142857142854,68.39197530864197,73.03703703703704,87.62037037037038,41.66666666666667,24.891774891774894,39.231601731601735,54.0246913580247,84.27160493827161,56.617283950617285 16 | 2020/2/15,59.425925925925924,73.68518518518519,57.91358024691358,70.6604938271605,74.65740740740742,69.58024691358025,36.7965367965368,25.297619047619047,28.95021645021645,40.04329004329004,62.882716049382715,42.884199134199136 17 | 2020/2/16,19.48051948051948,22.456709956709958,25.703463203463205,25.432900432900432,38.69047619047619,31.520562770562773,34.9025974025974,17.045454545454547,15.084876543209878,14.339826839826841,26.37987012987013,22.186147186147185 18 | 2020/2/17,44.913419913419915,43.69588744588745,45.99567099567099,43.560606060606055,50.05411255411255,56.833333333333336,55.861111111111114,14.745670995670997,32.87337662337662,45.589826839826834,45.99567099567099,45.183982683982684 19 | 2020/2/18,35.03787878787879,37.47294372294372,38.96103896103896,38.41991341991342,64.82716049382717,66.12345679012346,59.425925925925924,28.95021645021645,32.60281385281385,31.25,40.99025974025974,33.00865800865801 20 | 2020/2/19,39.5021645021645,41.80194805194805,71.95679012345678,55.75308641975308,86.32407407407408,89.88888888888889,86.4320987654321,22.456709956709958,27.462121212121215,29.897186147186147,49.24242424242424,29.356060606060606 21 | 2020/2/20,46.53679653679654,49.24242424242424,63.85493827160494,52.7283950617284,86.32407407407408,87.83641975308643,79.30246913580248,25.432900432900432,26.785714285714285,21.374458874458874,53.160493827160494,33.00865800865801 22 | 2020/2/21,47.34848484848485,54.99691358024692,84.48765432098767,65.58333333333334,110.39814814814815,123.36111111111111,81.67901234567901,32.60281385281385,32.60281385281385,28.40909090909091,64.82716049382717,58.23765432098766 23 | 2020/2/22,76.16975308641975,67.63580246913581,82.00308641975309,77.6820987654321,111.91049382716051,112.3425925925926,104.67283950617283,34.63203463203463,34.63203463203463,51.54012345679013,76.92592592592592,76.49382716049382 24 | 2020/2/23,56.18518518518518,60.72222222222222,88.91666666666667,76.92592592592592,118.28395061728395,120.33641975308643,100.36728395061729,27.326839826839823,28.40909090909091,64.82716049382717,61.69444444444444,61.58641975308642 25 | 2020/2/24,91.83333333333334,101.75617283950616,122.38888888888889,123.03703703703704,146.0462962962963,123.03703703703704,93.8858024691358,34.36147186147186,33.54978354978355,35.44372294372294,85.02777777777779,36.66125541125541 26 | 2020/2/25,81.13888888888889,75.62962962962963,67.31172839506173,102.18827160493828,106.18518518518519,102.40432098765432,101.2314814814815,28.003246753246753,30.70887445887446,37.878787878787875,56.293209876543216,72.38888888888889 27 | 2020/2/26,62.55864197530864,53.26851851851852,43.96645021645021,56.50925925925926,62.66666666666667,73.25308641975309,76.49382716049382,17.58658008658009,28.138528138528137,45.183982683982684,71.20061728395062,60.1820987654321 28 | 2020/2/27,41.66666666666667,49.78354978354979,54.0246913580247,57.373456790123456,89.02469135802471,97.66666666666667,105.10493827160495,17.857142857142858,36.25541125541125,24.891774891774894,41.80194805194805,35.44372294372294 29 | 2020/2/28,86.8641975308642,66.01543209876544,87.08024691358025,89.24074074074075,121.84876543209876,110.50617283950616,97.55864197530866,36.93181818181818,29.22077922077922,20.562770562770563,87.51234567901236,70.12037037037038 30 | 2020/2/29,61.26234567901234,56.293209876543216,65.4753086419753,83.94753086419753,95.29012345679013,88.91666666666667,80.16666666666667,24.350649350649352,30.167748917748916,32.467532467532465,74.33333333333334,62.23456790123457 31 | -------------------------------------------------------------------------------- /space_train/space_4.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/4/1,23.26839826839827,26.10930735930736,39.908008658008654,33.27922077922078,56.617283950617285,69.47222222222223,78.43827160493828,35.44372294372294,34.9025974025974,19.345238095238095,28.40909090909091,22.321428571428573 3 | 2020/4/2,48.16017316017316,52.620370370370374,51.0,41.125541125541126,63.20679012345679,68.39197530864197,74.98148148148148,16.233766233766232,24.756493506493506,19.20995670995671,42.20779220779221,26.650432900432904 4 | 2020/4/3,62.01851851851852,70.44444444444444,54.78086419753086,56.94135802469136,83.2993827160494,89.78086419753086,91.29320987654322,22.186147186147185,22.591991341991342,23.538961038961038,59.641975308641975,45.45454545454545 5 | 2020/4/4,50.05411255411255,49.51298701298701,41.260822510822514,45.31926406926407,71.30864197530865,82.65123456790124,88.80864197530865,26.244588744588746,24.756493506493506,24.08008658008658,52.18827160493827,43.29004329004329 6 | 2020/4/5,57.26543209876544,47.88961038961039,45.31926406926407,49.24242424242424,66.98765432098766,74.87345679012346,82.86728395061729,33.27922077922078,47.61904761904761,49.91883116883117,58.885802469135804,52.2962962962963 7 | 2020/4/6,43.01948051948052,44.1017316017316,40.04329004329004,42.47835497835498,64.82716049382717,81.35493827160494,103.48456790123457,21.374458874458874,36.7965367965368,26.515151515151512,45.048701298701296,34.226190476190474 8 | 2020/4/7,35.984848484848484,33.54978354978355,35.57900432900433,33.54978354978355,57.91358024691358,70.12037037037038,68.39197530864197,12.445887445887447,17.18073593073593,15.827922077922079,37.33766233766234,30.303030303030305 9 | 2020/4/8,47.48376623376623,45.99567099567099,48.16017316017316,44.50757575757576,73.68518518518519,77.89814814814815,79.4104938271605,24.08008658008658,20.562770562770563,21.103896103896105,43.154761904761905,36.25541125541125 10 | 2020/4/9,55.10493827160494,45.86038961038961,53.48456790123456,53.70061728395062,78.43827160493828,89.34876543209877,95.83024691358025,47.077922077922075,35.849567099567096,37.06709956709957,54.888888888888886,38.01406926406926 11 | 2020/4/10,52.620370370370374,60.93827160493827,79.8425925925926,72.49691358024693,94.64197530864199,89.99691358024693,95.39814814814815,47.88961038961039,39.231601731601735,38.82575757575758,48.29545454545455,38.14935064935065 12 | 2020/4/11,70.87654320987654,68.9320987654321,77.89814814814815,92.69753086419753,101.87962962962965,92.9135802469136,82.86728395061729,52.94444444444444,38.14935064935065,37.60822510822511,68.39197530864197,61.910493827160494 13 | 2020/4/12,34.496753246753244,24.891774891774894,30.979437229437227,30.303030303030305,46.26623376623377,51.648148148148145,58.561728395061735,49.91883116883117,29.491341991341994,32.73809523809524,47.88961038961039,45.183982683982684 14 | 2020/4/13,62.66666666666667,61.4783950617284,64.50308641975309,66.23148148148148,65.04320987654322,60.93827160493827,64.50308641975309,57.91358024691358,54.348765432098766,57.04938271604938,72.82098765432099,70.12037037037038 15 | 2020/4/14,68.0679012345679,72.92901234567901,87.2962962962963,81.89506172839506,84.59567901234568,83.2993827160494,82.32716049382717,60.93827160493827,72.38888888888889,67.52777777777779,78.9783950617284,69.04012345679013 16 | 2020/4/15,77.14197530864197,84.48765432098767,88.26851851851853,92.80555555555557,82.54320987654322,68.17592592592592,80.16666666666667,63.09876543209877,60.50617283950618,69.7962962962963,83.08333333333334,83.08333333333334 17 | 2020/4/16,76.49382716049382,69.68827160493828,75.62962962962963,82.54320987654322,77.25,64.93518518518519,71.41666666666667,53.916666666666664,49.24242424242424,55.96913580246914,95.07407407407408,65.69135802469137 18 | 2020/4/17,70.55246913580248,63.63888888888889,72.06481481481481,74.54938271604938,86.32407407407408,72.38888888888889,82.86728395061729,45.99567099567099,42.47835497835498,49.51298701298701,67.20370370370371,69.25617283950618 19 | 2020/4/18,81.57098765432099,78.5462962962963,76.16975308641975,70.2283950617284,93.45370370370371,74.76543209876544,65.36728395061729,33.1439393939394,36.66125541125541,58.34567901234568,78.43827160493828,71.41666666666667 20 | 2020/4/19,68.0679012345679,59.20987654320988,56.401234567901234,53.376543209876544,59.75,50.05411255411255,36.93181818181818,32.196969696969695,39.09632034632035,64.93518518518519,73.36111111111111,72.92901234567901 21 | 2020/4/20,59.858024691358025,63.63888888888889,67.63580246913581,57.589506172839506,68.17592592592592,58.885802469135804,55.320987654320994,48.836580086580085,43.83116883116883,55.10493827160494,55.75308641975308,48.701298701298704 22 | 2020/4/21,38.5551948051948,59.858024691358025,72.60493827160494,57.589506172839506,86.64814814814815,79.95061728395062,70.44444444444444,43.425324675324674,28.679653679653683,24.08008658008658,43.96645021645021,30.167748917748916 23 | 2020/4/22,15.963203463203463,21.374458874458874,25.162337662337663,23.538961038961038,56.7253086419753,59.533950617283956,71.95679012345678,24.350649350649352,11.11111111111111,8.449074074074074,13.528138528138529,10.01082251082251 24 | 2020/4/23,32.196969696969695,34.226190476190474,35.849567099567096,42.74891774891775,61.69444444444444,62.01851851851852,69.25617283950618,15.557359307359308,15.151515151515152,31.655844155844157,38.14935064935065,40.17857142857143 25 | 2020/4/24,24.891774891774894,28.54437229437229,46.672077922077925,36.66125541125541,77.46604938271605,81.67901234567901,82.11111111111111,22.321428571428573,20.156926406926406,27.597402597402596,31.114718614718615,28.54437229437229 26 | 2020/4/25,69.58024691358025,48.02489177489177,98.53086419753087,80.81481481481482,117.52777777777779,95.6141975308642,84.1635802469136,21.374458874458874,22.0508658008658,17.4512987012987,47.75432900432901,30.844155844155843 27 | 2020/4/26,60.830246913580254,62.99074074074074,62.45061728395062,53.376543209876544,96.0462962962963,92.9135802469136,77.46604938271605,30.70887445887446,26.515151515151512,25.83874458874459,56.94135802469136,41.531385281385276 28 | 2020/4/27,32.196969696969695,42.20779220779221,64.50308641975309,51.108024691358025,84.05555555555557,74.00925925925927,68.17592592592592,17.316017316017316,23.133116883116884,21.780303030303028,20.833333333333336,25.568181818181817 29 | 2020/4/28,39.231601731601735,44.77813852813853,62.99074074074074,61.4783950617284,89.88888888888889,83.83950617283952,64.61111111111111,41.66666666666667,32.467532467532465,35.30844155844156,40.71969696969697,40.71969696969697 30 | 2020/4/29,71.84876543209877,78.76234567901236,76.27777777777779,83.7314814814815,82.75925925925927,76.8179012345679,68.82407407407408,57.157407407407405,48.566017316017316,48.43073593073593,60.614197530864196,51.864197530864196 31 | 2020/4/30,82.32716049382717,72.92901234567901,80.2746913580247,76.92592592592592,83.40740740740742,89.88888888888889,80.92283950617285,54.99691358024692,43.69588744588745,54.99691358024692,82.54320987654322,64.50308641975309 32 | -------------------------------------------------------------------------------- /space_train/space_9.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/9/1,49.51298701298701,51.54012345679013,54.24074074074074,56.94135802469136,55.75308641975308,55.96913580246914,51.864197530864196,38.96103896103896,33.54978354978355,33.955627705627705,56.617283950617285,49.78354978354979 3 | 2020/9/2,59.858024691358025,56.94135802469136,59.20987654320988,63.74691358024692,59.101851851851855,59.425925925925924,47.34848484848485,27.462121212121215,41.80194805194805,36.39069264069264,72.17283950617285,58.0216049382716 4 | 2020/9/3,53.592592592592595,55.21296296296296,53.80864197530864,48.566017316017316,32.061688311688314,35.03787878787879,37.202380952380956,29.897186147186147,40.85497835497836,45.99567099567099,63.96296296296296,52.83641975308642 5 | 2020/9/4,54.78086419753086,60.830246913580254,60.29012345679012,55.75308641975308,56.7253086419753,53.26851851851852,45.183982683982684,35.984848484848484,30.43831168831169,52.18827160493827,59.641975308641975,49.78354978354979 6 | 2020/9/5,49.91883116883117,54.0246913580247,71.41666666666667,68.71604938271605,75.08950617283952,72.82098765432099,73.90123456790124,40.17857142857143,45.183982683982684,46.53679653679654,51.864197530864196,51.324074074074076 7 | 2020/9/6,53.052469135802475,55.21296296296296,60.39814814814815,56.401234567901234,69.3641975308642,67.41975308641975,71.20061728395062,55.21296296296296,53.592592592592595,48.836580086580085,62.882716049382715,57.373456790123456 8 | 2020/9/7,73.79320987654322,68.0679012345679,72.60493827160494,78.00617283950618,84.81172839506173,70.6604938271605,67.95987654320989,44.913419913419915,49.24242424242424,56.293209876543216,70.12037037037038,58.885802469135804 9 | 2020/9/8,82.65123456790124,72.92901234567901,75.41358024691358,77.25,83.19135802469137,65.36728395061729,66.01543209876544,38.01406926406926,52.18827160493827,55.21296296296296,96.69444444444446,74.54938271604938 10 | 2020/9/9,59.858024691358025,57.48148148148148,67.31172839506173,80.49074074074075,86.32407407407408,65.69135802469137,60.614197530864196,38.69047619047619,31.25,59.96604938271605,71.0925925925926,62.66666666666667 11 | 2020/9/10,70.87654320987654,81.57098765432099,91.29320987654322,82.86728395061729,88.80864197530865,65.79938271604938,73.79320987654322,25.703463203463205,26.10930735930736,39.63744588744589,85.02777777777779,63.96296296296296 12 | 2020/9/11,30.844155844155843,52.18827160493827,48.43073593073593,52.7283950617284,38.41991341991342,38.96103896103896,35.17316017316018,6.222943722943723,16.504329004329005,39.5021645021645,63.42283950617284,57.26543209876544 13 | 2020/9/12,40.31385281385281,36.66125541125541,33.00865800865801,42.20779220779221,34.226190476190474,29.085497835497836,34.226190476190474,5.546536796536796,17.045454545454547,39.366883116883116,44.23701298701299,37.743506493506494 14 | 2020/9/13,22.727272727272727,29.491341991341994,33.685064935064936,33.54978354978355,48.16017316017316,41.125541125541126,38.96103896103896,9.1991341991342,17.12962962962963,30.032467532467532,29.76190476190476,16.91017316017316 15 | 2020/9/14,20.968614718614717,28.814935064935064,48.29545454545455,41.260822510822514,55.10493827160494,54.24074074074074,48.836580086580085,5.131172839506173,14.891975308641975,19.75108225108225,27.326839826839823,15.151515151515152 16 | 2020/9/15,32.332251082251084,30.70887445887446,45.45454545454545,47.21320346320346,51.21604938271605,47.34848484848485,56.18518518518518,5.005411255411255,12.577160493827162,20.968614718614717,40.58441558441558,35.17316017316018 17 | 2020/9/16,52.51234567901234,53.052469135802475,54.56481481481482,49.51298701298701,58.0216049382716,61.26234567901234,46.672077922077925,4.734848484848484,12.229938271604938,20.42748917748918,52.40432098765432,43.96645021645021 18 | 2020/9/17,48.836580086580085,52.7283950617284,57.04938271604938,66.98765432098766,83.94753086419753,89.78086419753086,63.85493827160494,9.604978354978355,12.037037037037036,31.01851851851852,51.0,48.43073593073593 19 | 2020/9/18,49.51298701298701,55.53703703703704,60.50617283950618,65.36728395061729,76.92592592592592,83.08333333333334,59.96604938271605,10.146103896103895,11.496913580246913,24.215367965367964,56.401234567901234,46.53679653679654 20 | 2020/9/19,34.9025974025974,41.125541125541126,44.23701298701299,40.4491341991342,47.077922077922075,40.4491341991342,42.884199134199136,6.3657407407407405,11.093073593073592,19.345238095238095,41.93722943722943,29.085497835497836 21 | 2020/9/20,16.774891774891774,24.350649350649352,30.70887445887446,35.17316017316018,40.71969696969697,41.125541125541126,33.685064935064936,9.334415584415584,12.5,20.698051948051948,28.273809523809526,21.50974025974026 22 | 2020/9/21,29.897186147186147,37.878787878787875,29.356060606060606,38.41991341991342,54.56481481481482,55.75308641975308,48.29545454545455,17.992424242424242,26.37987012987013,30.032467532467532,40.71969696969697,34.36147186147186 23 | 2020/9/22,35.44372294372294,39.77272727272727,51.864197530864196,42.34307359307359,67.52777777777779,67.85185185185185,63.85493827160494,26.92099567099567,38.96103896103896,31.520562770562773,39.63744588744589,30.167748917748916 24 | 2020/9/23,35.57900432900433,40.99025974025974,62.55864197530864,53.160493827160494,62.7746913580247,61.802469135802475,67.63580246913581,27.73268398268398,34.36147186147186,28.40909090909091,41.80194805194805,31.385281385281385 25 | 2020/9/24,23.944805194805195,32.87337662337662,48.29545454545455,42.47835497835498,69.90432098765433,64.50308641975309,65.79938271604938,28.273809523809526,25.162337662337663,30.032467532467532,27.597402597402596,20.42748917748918 26 | 2020/9/25,43.96645021645021,38.5551948051948,26.37987012987013,39.63744588744589,49.51298701298701,53.916666666666664,64.82716049382717,19.615800865800868,31.385281385281385,30.303030303030305,52.620370370370374,45.31926406926407 27 | 2020/9/26,32.87337662337662,32.061688311688314,41.93722943722943,46.942640692640694,79.30246913580248,88.05246913580248,71.20061728395062,19.074675324675326,27.462121212121215,23.403679653679653,36.66125541125541,33.685064935064936 28 | 2020/9/27,16.774891774891774,20.698051948051948,28.273809523809526,29.22077922077922,75.73765432098766,71.5246913580247,63.74691358024692,17.045454545454547,18.939393939393938,20.29220779220779,26.650432900432904,18.66883116883117 29 | 2020/9/28,24.08008658008658,21.645021645021647,28.003246753246753,34.63203463203463,63.96296296296296,67.31172839506173,60.074074074074076,27.597402597402596,14.737654320987653,7.44047619047619,28.54437229437229,16.233766233766232 30 | 2020/9/29,32.061688311688314,34.76731601731602,33.41450216450216,36.12012987012987,56.833333333333336,59.533950617283956,64.28703703703704,12.445887445887447,24.215367965367964,27.73268398268398,36.93181818181818,26.515151515151512 31 | 2020/9/30,28.40909090909091,32.60281385281385,27.191558441558442,30.43831168831169,65.4753086419753,64.93518518518519,62.55864197530864,11.228354978354979,26.785714285714285,23.809523809523807,44.50757575757576,33.82034632034632 32 | -------------------------------------------------------------------------------- /space_train/space_11.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/11/1,31.520562770562773,50.18939393939394,69.68827160493828,71.95679012345678,91.94135802469137,84.37962962962963,66.12345679012346,24.350649350649352,41.396103896103895,21.103896103896105,45.31926406926407,35.03787878787879 3 | 2020/11/2,27.191558441558442,48.02489177489177,52.7283950617284,62.882716049382715,73.36111111111111,72.82098765432099,76.06172839506173,23.133116883116884,30.57359307359307,26.650432900432904,38.14935064935065,35.714285714285715 4 | 2020/11/3,73.25308641975309,71.5246913580247,61.370370370370374,70.6604938271605,70.33641975308642,77.6820987654321,82.86728395061729,58.66975308641975,55.861111111111114,65.25925925925927,93.66975308641976,84.1635802469136 5 | 2020/11/4,31.6358024691358,32.196969696969695,42.20779220779221,52.51234567901234,75.84567901234568,85.45987654320989,86.97222222222223,44.642857142857146,36.25541125541125,35.30844155844156,51.21604938271605,40.85497835497836 6 | 2020/11/5,21.604938271604937,29.085497835497836,53.052469135802475,49.107142857142854,73.57716049382717,77.46604938271605,79.4104938271605,22.186147186147185,29.626623376623375,28.40909090909091,37.878787878787875,29.22077922077922 7 | 2020/11/6,40.31385281385281,51.54012345679013,67.52777777777779,48.836580086580085,79.8425925925926,83.40740740740742,79.8425925925926,21.103896103896105,25.432900432900432,15.557359307359308,24.62121212121212,13.528138528138529 8 | 2020/11/7,64.07098765432099,66.44753086419753,58.0216049382716,70.01234567901234,64.17901234567901,67.09567901234567,41.125541125541126,20.968614718614717,22.0508658008658,15.692640692640692,64.39506172839506,30.979437229437227 9 | 2020/11/8,49.6482683982684,34.76731601731602,26.10930735930736,37.202380952380956,45.048701298701296,56.94135802469136,68.71604938271605,15.286796536796535,15.692640692640692,9.74025974025974,60.50617283950618,44.50757575757576 10 | 2020/11/9,46.40151515151515,40.58441558441558,30.844155844155843,45.31926406926407,60.93827160493827,69.3641975308642,77.35802469135803,25.974025974025974,29.491341991341994,39.5021645021645,56.7253086419753,51.75617283950617 11 | 2020/11/10,20.02164502164502,21.23917748917749,17.045454545454547,27.73268398268398,49.51298701298701,56.833333333333336,63.53086419753086,15.016233766233766,16.233766233766232,12.175324675324676,40.58441558441558,27.597402597402596 12 | 2020/11/11,30.57359307359307,25.297619047619047,28.003246753246753,36.66125541125541,55.42901234567901,64.28703703703704,70.01234567901234,26.515151515151512,28.814935064935064,24.756493506493506,40.17857142857143,36.52597402597402 13 | 2020/11/12,27.056277056277057,24.485930735930737,40.58441558441558,51.324074074074076,71.5246913580247,81.89506172839506,81.46296296296296,32.60281385281385,29.085497835497836,21.103896103896105,43.01948051948052,38.41991341991342 14 | 2020/11/13,27.86796536796537,23.403679653679653,29.626623376623375,42.74891774891775,57.373456790123456,68.39197530864197,81.67901234567901,14.88095238095238,18.66883116883117,13.122294372294373,42.884199134199136,37.06709956709957 15 | 2020/11/14,24.756493506493506,21.645021645021647,39.231601731601735,41.125541125541126,74.98148148148148,72.17283950617285,93.12962962962963,23.809523809523807,28.003246753246753,20.833333333333336,42.34307359307359,34.09090909090909 16 | 2020/11/15,27.191558441558442,39.231601731601735,61.370370370370374,59.20987654320988,84.37962962962963,93.02160493827161,83.83950617283952,27.597402597402596,32.332251082251084,25.83874458874459,43.29004329004329,32.061688311688314 17 | 2020/11/16,17.58658008658009,51.75617283950617,72.60493827160494,72.06481481481481,93.56172839506173,89.56481481481482,100.15123456790124,19.48051948051948,30.032467532467532,12.31060606060606,29.085497835497836,21.915584415584416 18 | 2020/11/17,58.12962962962963,87.94444444444446,88.5925925925926,108.56172839506172,100.58333333333334,70.76851851851852,74.98148148148148,20.562770562770563,22.727272727272727,14.339826839826841,38.41991341991342,23.538961038961038 19 | 2020/11/18,79.51851851851852,83.2993827160494,89.99691358024693,107.80555555555556,113.53086419753087,83.83950617283952,68.71604938271605,22.456709956709958,25.703463203463205,21.915584415584416,92.26543209876544,33.41450216450216 20 | 2020/11/19,65.69135802469137,42.884199134199136,49.91883116883117,65.9074074074074,80.49074074074075,80.05864197530865,89.34876543209877,9.604978354978355,25.297619047619047,22.0508658008658,70.2283950617284,40.85497835497836 21 | 2020/11/20,48.43073593073593,52.18827160493827,56.18518518518518,58.12962962962963,77.03395061728395,82.43518518518519,83.51543209876544,17.316017316017316,30.844155844155843,31.926406926406926,36.7965367965368,42.74891774891775 22 | 2020/11/21,14.745670995670997,41.93722943722943,58.99382716049382,67.31172839506173,105.96913580246913,101.97222222222223,76.92592592592592,9.334415584415584,12.716450216450216,19.886363636363637,30.844155844155843,30.303030303030305 23 | 2020/11/22,32.73809523809524,51.0,68.39197530864197,88.70061728395063,104.78086419753087,110.29012345679013,83.62345679012346,13.798701298701298,19.886363636363637,13.392857142857142,48.43073593073593,29.356060606060606 24 | 2020/11/23,17.4512987012987,13.663419913419911,34.63203463203463,29.76190476190476,68.5,78.00617283950618,94.20987654320987,11.769480519480519,15.422077922077921,15.422077922077921,32.061688311688314,22.997835497835496 25 | 2020/11/24,19.20995670995671,25.162337662337663,47.34848484848485,42.74891774891775,66.87962962962963,67.74382716049382,68.17592592592592,18.127705627705627,25.83874458874459,23.403679653679653,38.96103896103896,35.714285714285715 26 | 2020/11/25,17.58658008658009,42.61363636363636,59.20987654320988,55.75308641975308,79.51851851851852,75.62962962962963,71.74074074074075,26.515151515151512,23.809523809523807,20.42748917748918,31.79112554112554,26.244588744588746 27 | 2020/11/26,26.244588744588746,62.126543209876544,67.41975308641975,82.32716049382717,95.1820987654321,86.21604938271605,77.57407407407408,28.273809523809526,33.41450216450216,29.22077922077922,35.984848484848484,32.196969696969695 28 | 2020/11/27,29.22077922077922,42.47835497835498,51.648148148148145,67.52777777777779,91.18518518518519,92.9135802469136,96.91049382716051,17.857142857142858,23.403679653679653,25.974025974025974,43.29004329004329,39.231601731601735 29 | 2020/11/28,21.374458874458874,19.615800865800868,30.57359307359307,33.955627705627705,56.50925925925926,62.7746913580247,70.98456790123457,17.4512987012987,21.103896103896105,21.50974025974026,32.196969696969695,22.456709956709958 30 | 2020/11/29,16.098484848484848,9.334415584415584,25.162337662337663,30.167748917748916,60.830246913580254,58.23765432098766,73.25308641975309,11.498917748917748,12.31060606060606,16.233766233766232,27.056277056277057,22.0508658008658 31 | 2020/11/30,14.339826839826841,10.146103896103895,28.679653679653683,26.37987012987013,60.72222222222222,64.07098765432099,83.19135802469137,11.228354978354979,14.351851851851851,13.122294372294373,34.76731601731602,26.515151515151512 32 | -------------------------------------------------------------------------------- /space_train/space_6.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/6/1,24.350649350649352,19.886363636363637,19.074675324675326,13.425925925925926,19.345238095238095,14.158950617283951,14.069264069264069,17.045454545454547,23.403679653679653,23.809523809523807,22.186147186147185,27.056277056277057 3 | 2020/6/2,15.692640692640692,20.42748917748918,23.538961038961038,12.461419753086421,15.827922077922079,11.574074074074074,16.774891774891774,17.992424242424242,17.992424242424242,19.886363636363637,23.538961038961038,35.30844155844156 4 | 2020/6/3,20.156926406926406,17.72186147186147,15.963203463203463,11.535493827160494,17.4512987012987,12.577160493827162,11.959876543209877,14.204545454545455,25.297619047619047,28.814935064935064,21.780303030303028,28.273809523809526 5 | 2020/6/4,19.75108225108225,19.20995670995671,31.520562770562773,15.422077922077921,21.374458874458874,16.233766233766232,12.38425925925926,14.745670995670997,24.215367965367964,31.79112554112554,25.432900432900432,33.54978354978355 6 | 2020/6/5,25.162337662337663,22.456709956709958,21.374458874458874,13.078703703703704,23.809523809523807,14.204545454545455,16.36904761904762,13.122294372294373,26.92099567099567,30.303030303030305,26.515151515151512,36.7965367965368 7 | 2020/6/6,22.591991341991342,15.422077922077921,12.04004329004329,12.770061728395062,18.26298701298701,11.844135802469136,14.313271604938272,12.175324675324676,33.00865800865801,34.36147186147186,22.186147186147185,26.244588744588746 8 | 2020/6/7,18.804112554112557,8.522727272727273,12.04004329004329,9.799382716049383,14.351851851851851,12.885802469135802,14.081790123456791,12.175324675324676,21.780303030303028,18.26298701298701,20.562770562770563,24.485930735930737 9 | 2020/6/8,20.698051948051948,11.498917748917748,12.191358024691358,7.600308641975309,15.54783950617284,14.737654320987653,17.59259259259259,16.504329004329005,13.001543209876543,12.581168831168831,21.780303030303028,22.186147186147185 10 | 2020/6/9,22.862554112554115,11.228354978354979,12.581168831168831,12.152777777777779,22.0508658008658,20.29220779220779,24.485930735930737,10.416666666666668,16.165123456790123,14.660493827160494,25.162337662337663,22.0508658008658 11 | 2020/6/10,29.356060606060606,21.23917748917749,27.597402597402596,16.233766233766232,25.703463203463205,16.36904761904762,19.074675324675326,10.687229437229437,16.233766233766232,19.20995670995671,30.844155844155843,33.54978354978355 12 | 2020/6/11,31.655844155844157,21.780303030303028,28.138528138528137,21.915584415584416,27.191558441558442,16.774891774891774,16.743827160493826,13.257575757575756,16.049382716049383,35.44372294372294,39.908008658008654,50.05411255411255 13 | 2020/6/12,25.568181818181817,23.538961038961038,21.23917748917749,21.645021645021647,29.897186147186147,26.515151515151512,29.356060606060606,16.91017316017316,15.74074074074074,25.162337662337663,39.77272727272727,45.72510822510823 14 | 2020/6/13,35.17316017316018,33.955627705627705,34.09090909090909,24.350649350649352,45.99567099567099,51.324074074074076,30.787037037037038,20.562770562770563,18.942901234567902,22.067901234567902,36.66125541125541,41.260822510822514 15 | 2020/6/14,28.138528138528137,26.244588744588746,16.504329004329005,16.78240740740741,24.891774891774894,19.483024691358025,13.657407407407408,16.504329004329005,12.692901234567902,29.491341991341994,34.63203463203463,41.125541125541126 16 | 2020/6/15,22.0508658008658,17.992424242424242,13.96604938271605,13.773148148148149,16.233766233766232,12.885802469135802,16.820987654320987,11.228354978354979,14.853395061728396,24.485930735930737,21.915584415584416,20.562770562770563 17 | 2020/6/16,19.48051948051948,15.151515151515152,16.628086419753085,15.74074074074074,16.91017316017316,11.882716049382717,17.631172839506174,13.798701298701298,18.804112554112557,25.703463203463205,19.20995670995671,25.83874458874459 18 | 2020/6/17,24.08008658008658,18.3982683982684,17.045454545454547,14.660493827160494,17.18073593073593,10.570987654320987,13.933982683982684,10.281385281385282,23.944805194805195,30.303030303030305,25.568181818181817,31.926406926406926 19 | 2020/6/18,26.37987012987013,24.62121212121212,35.714285714285715,17.72186147186147,19.48051948051948,11.728395061728394,12.31060606060606,12.987012987012987,23.133116883116884,34.226190476190474,31.25,30.43831168831169 20 | 2020/6/19,26.785714285714285,22.862554112554115,23.674242424242426,21.645021645021647,21.374458874458874,13.695987654320987,16.91017316017316,10.551948051948052,21.374458874458874,30.70887445887446,29.22077922077922,32.061688311688314 21 | 2020/6/20,33.1439393939394,28.814935064935064,27.326839826839823,19.074675324675326,22.0508658008658,15.422077922077921,17.4512987012987,12.581168831168831,24.08008658008658,30.57359307359307,33.82034632034632,32.061688311688314 22 | 2020/6/21,38.01406926406926,37.202380952380956,24.891774891774894,30.43831168831169,25.432900432900432,16.098484848484848,28.95021645021645,20.562770562770563,27.597402597402596,42.74891774891775,48.43073593073593,33.41450216450216 23 | 2020/6/22,23.674242424242426,15.016233766233766,15.827922077922079,13.233024691358024,15.557359307359308,11.458333333333334,14.467592592592593,13.663419913419911,31.114718614718615,29.356060606060606,24.350649350649352,26.10930735930736 24 | 2020/6/23,26.92099567099567,18.939393939393938,17.206790123456788,15.4320987654321,14.197530864197532,11.419753086419753,13.88888888888889,14.61038961038961,32.87337662337662,28.54437229437229,25.432900432900432,27.73268398268398 25 | 2020/6/24,23.538961038961038,19.886363636363637,23.538961038961038,17.901234567901234,16.504329004329005,13.503086419753087,14.544753086419753,15.422077922077921,29.626623376623375,32.332251082251084,29.491341991341994,31.655844155844157 26 | 2020/6/25,20.562770562770563,16.63961038961039,16.774891774891774,14.00462962962963,17.316017316017316,10.686728395061728,11.574074074074074,14.61038961038961,28.40909090909091,35.57900432900433,24.485930735930737,32.467532467532465 27 | 2020/6/26,21.374458874458874,18.26298701298701,12.987012987012987,10.956790123456791,20.29220779220779,13.348765432098764,16.91017316017316,19.20995670995671,23.538961038961038,33.1439393939394,26.37987012987013,28.54437229437229 28 | 2020/6/27,25.568181818181817,21.23917748917749,19.615800865800868,20.562770562770563,19.75108225108225,15.8179012345679,16.975308641975307,10.687229437229437,20.60185185185185,25.432900432900432,28.138528138528137,33.1439393939394 29 | 2020/6/28,22.591991341991342,19.074675324675326,16.098484848484848,17.857142857142858,16.36904761904762,13.695987654320987,11.363636363636363,12.04004329004329,15.277777777777779,26.515151515151512,22.456709956709958,28.40909090909091 30 | 2020/6/29,24.891774891774894,25.568181818181817,23.133116883116884,19.48051948051948,14.745670995670997,11.612654320987653,4.6682098765432105,12.31060606060606,21.334876543209877,23.674242424242426,28.679653679653683,31.385281385281385 31 | 2020/6/30,19.20995670995671,20.156926406926406,16.280864197530864,14.544753086419753,13.933982683982684,11.419753086419753,10.532407407407408,12.175324675324676,22.183641975308642,24.891774891774894,25.297619047619047,29.356060606060606 32 | -------------------------------------------------------------------------------- /space_AQI_label.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Mon Jan 11 09:50:11 2021 4 | 5 | @author: ray 6 | """ 7 | 8 | import numpy as np 9 | import pandas as pd 10 | result_all = pd.DataFrame() 11 | for month_num in range(1,13): 12 | df_data = pd.read_csv('./space/space_'+ str(month_num) +'.csv', index_col= False) 13 | new_frame = pd.read_csv('train_space_frame.csv') 14 | # df_data_drop = df_data[(True-df_data.isin(['x']))] 15 | result = pd.DataFrame() 16 | 17 | days = int(df_data.shape[0]/132) 18 | # for num, col in enumerate(df_data.iloc[:,6]): 19 | data_temp = pd.DataFrame() 20 | # AQI_result = np.zeros(shape=[5, days]) 21 | 22 | for day_num in range(days): 23 | 24 | data_temp = df_data.iloc[day_num * 132:(day_num * 132)+132, :].reset_index() 25 | space_ItemId = data_temp["ItemId"] 26 | 27 | for space_num in range(12): 28 | ItemId = space_ItemId[space_num * 11 : (space_num * 11)+11] 29 | data_space_temp = data_temp.iloc[space_num * 11 : (space_num * 11)+11].reset_index() 30 | for Id_num in range(11): 31 | # print(ItemId[Id_num]) 32 | if(ItemId.iloc[Id_num]==3): 33 | # print('ok') 34 | AQI_O3 = 0 35 | mean_O3 = 0 36 | O3 = np.float64(data_space_temp.iloc[Id_num, 9:]) 37 | mean_O3 = O3.mean() 38 | if(mean_O3 < 125): 39 | AQI_O3 = 0 40 | if(mean_O3 >= 125 and mean_O3 <= 164): 41 | AQI_O3 = (mean_O3-125)*(49/39)+101 42 | if(mean_O3 > 164): 43 | AQI_O3 = (mean_O3-165)*(49/39)+151 44 | # print('AQI_O3', AQI_O3) 45 | 46 | if(ItemId.iloc[Id_num]==33): 47 | AQI_PM25 = 0 48 | mean_PM25 = 0 49 | PM25 = np.float64(data_space_temp.iloc[Id_num, 9:]) 50 | mean_PM25 = PM25.mean() 51 | if(mean_PM25 < 15.5): 52 | AQI_PM25 = (mean_PM25)*(50/15.4) 53 | if(mean_PM25 >=15.5 and mean_PM25 <35.4): 54 | AQI_PM25 = (mean_PM25-15.5)*(49/18.9)+51 55 | if(mean_PM25 >=35.4 and mean_PM25 <54.4): 56 | AQI_PM25 = (mean_PM25-35.5)*(49/18.9)+101 57 | if(mean_PM25 >=54.4): 58 | AQI_PM25 = (mean_PM25-54.5)*(49/95.9)+151 59 | # print('AQI_PM25', AQI_PM25) 60 | 61 | if(ItemId.iloc[Id_num]==4): 62 | AQI_PM10 = 0 63 | mean_PM10 = 0 64 | PM10 = np.float64(data_space_temp.iloc[Id_num, 9:]) 65 | mean_PM10 = PM10.mean() 66 | if(mean_PM10 < 54): 67 | AQI_PM10 = (mean_PM10)*(50/54) 68 | if(mean_PM10 >=54 and mean_PM10 <125): 69 | AQI_PM10 = (mean_PM25-54)*(49/70)+51 70 | if(mean_PM10 >=125 and mean_PM10 <254): 71 | AQI_PM10 = (mean_PM25-125)*(49/128)+101 72 | if(mean_PM10 >=254): 73 | AQI_PM10 = (mean_PM25-254)*(49/99)+151 74 | # print('AQI_PM10', AQI_PM10, 'mean_PM10', mean_PM10) 75 | 76 | if(ItemId.iloc[Id_num]==2): 77 | AQI_CO = 0 78 | mean_CO = 0 79 | CO = np.float64(data_space_temp.iloc[Id_num, 9:]) 80 | mean_CO = CO.mean() 81 | if(mean_CO < 4.4): 82 | AQI_CO = (mean_CO)*(50/4.4) 83 | if(mean_CO >=4.4 and mean_CO <9.4): 84 | AQI_CO = (mean_CO-4.4)*(49/4.9)+51 85 | if(mean_CO >=9.4 and mean_CO <12.4): 86 | AQI_CO = (mean_CO-9.4)*(49/2.9)+101 87 | if(mean_CO >=12.4): 88 | AQI_CO = (mean_CO-12.4)*(49/2.9)+151 89 | # print('AQI_CO', AQI_CO, 'mean CO', mean_CO) 90 | 91 | if(ItemId.iloc[Id_num]==1): 92 | AQI_SO2 = 0 93 | mean_SO2 = 0 94 | SO2 = np.float64(data_space_temp.iloc[Id_num, 9:]) 95 | # print(SO2) 96 | mean_SO2 = SO2.mean() 97 | if(mean_SO2 < 35): 98 | AQI_SO2 = (mean_SO2)*(50/35) 99 | if(mean_SO2 >=35 and mean_SO2 <75): 100 | AQI_SO2 = (mean_SO2-35)*(49/39)+51 101 | if(mean_SO2 >=75 and mean_SO2 <185): 102 | AQI_SO2 = (mean_SO2-75)*(49/109)+101 103 | if(mean_SO2 >=185): 104 | AQI_SO2 = (mean_SO2-185)*(49/118)+151 105 | # print('AQI_SO2', AQI_SO2) 106 | 107 | AQI_temp = np.max([AQI_CO, AQI_O3, AQI_PM10, AQI_PM25, AQI_SO2]) 108 | new_frame.iloc[0, (space_num + 1)] = AQI_temp 109 | # print('day num: ',day_num, 'space_num ',space_num) 110 | # print('new_frame ',new_frame.iloc[0, (space_num + 1)]) 111 | # print('--------------------------------------------') 112 | new_frame.iloc[0, 0] = data_space_temp.iloc[0, 8] 113 | 114 | result = pd.concat([result, new_frame], axis=0) 115 | new_frame.iloc[0,:] = 0 116 | result.to_csv('./space_train/space_'+ str(month_num) +'.csv', index = False) 117 | result_all = pd.concat([result_all, result], axis=0) 118 | 119 | result_all.to_csv('./space_train/train_space_AQI.csv', index = False) 120 | 121 | # frame_3day = pd.read_csv('train_frame_3day.csv') 122 | # result_train = pd.DataFrame() 123 | 124 | # for train_num in range(363): 125 | # # col1 = pd.DataFrame(result_all.iloc[train_num, 2:8]).T 126 | # # col2 = pd.DataFrame(result_all.iloc[train_num+1, 2:8]).T 127 | # # col3 = pd.DataFrame(result_all.iloc[train_num+2, 2:8]).T 128 | # # label = pd.DataFrame(result_all.iloc[train_num+3, 7]) 129 | 130 | # # result_train_temp = pd.concat([col1, col2, col3, label], axis=1) 131 | # # result_train = pd.concat([result_train, result_train_temp], axis=0) 132 | 133 | # frame_3day.iloc[0, :6] = result_all.iloc[train_num, 2:8].values 134 | # frame_3day.iloc[0, 6:12] = result_all.iloc[train_num + 1, 2:8].values 135 | # frame_3day.iloc[0, 12:18]= result_all.iloc[train_num + 2, 2:8].values 136 | # frame_3day.iloc[0, 18] = result_all.iloc[train_num + 3, 7] 137 | # result_train = pd.concat([result_train, frame_3day], axis=0) 138 | 139 | # result_train.to_csv('./time_train/train_3day.csv', index = False) -------------------------------------------------------------------------------- /space_train/space_3.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/3/1,61.370370370370374,60.29012345679012,66.66358024691358,74.44135802469137,99.28703703703704,97.12654320987654,61.0462962962963,21.103896103896105,34.09090909090909,40.71969696969697,24.485930735930737,54.456790123456784 3 | 2020/3/2,32.467532467532465,28.003246753246753,24.08008658008658,33.82034632034632,57.157407407407405,67.95987654320989,97.01851851851853,18.26298701298701,20.29220779220779,19.75108225108225,33.82034632034632,29.22077922077922 4 | 2020/3/3,48.701298701298704,51.108024691358025,53.48456790123456,47.61904761904761,64.71913580246914,66.77160493827161,74.65740740740742,14.069264069264069,22.727272727272727,22.456709956709958,44.913419913419915,35.714285714285715 5 | 2020/3/4,33.1439393939394,47.21320346320346,51.54012345679013,46.13095238095238,69.47222222222223,74.54938271604938,88.5925925925926,17.857142857142858,18.939393939393938,18.127705627705627,33.685064935064936,23.26839826839827 6 | 2020/3/5,35.44372294372294,31.520562770562773,20.833333333333336,26.37987012987013,47.21320346320346,47.077922077922075,69.68827160493828,11.498917748917748,14.88095238095238,21.374458874458874,42.74891774891775,43.425324675324674 7 | 2020/3/6,45.048701298701296,45.183982683982684,64.28703703703704,56.18518518518518,86.75617283950618,87.40432098765433,76.92592592592592,15.151515151515152,13.528138528138529,24.350649350649352,60.29012345679012,33.82034632034632 8 | 2020/3/7,67.52777777777779,57.80555555555556,62.7746913580247,67.52777777777779,99.28703703703704,92.4814814814815,80.59876543209877,19.886363636363637,25.432900432900432,32.87337662337662,77.03395061728395,67.41975308641975 9 | 2020/3/8,63.53086419753086,71.95679012345678,65.4753086419753,80.59876543209877,115.0432098765432,118.82407407407408,74.00925925925927,19.75108225108225,31.926406926406926,39.77272727272727,62.45061728395062,29.22077922077922 10 | 2020/3/9,61.4783950617284,57.157407407407405,65.36728395061729,58.0216049382716,67.63580246913581,72.71296296296296,54.99691358024692,21.780303030303028,36.39069264069264,35.44372294372294,72.49691358024693,74.33333333333334 11 | 2020/3/10,31.79112554112554,25.162337662337663,25.83874458874459,27.191558441558442,34.76731601731602,35.849567099567096,51.432098765432094,26.10930735930736,16.504329004329005,26.515151515151512,32.467532467532465,28.273809523809526 12 | 2020/3/11,58.23765432098766,62.126543209876544,59.858024691358025,61.802469135802475,73.57716049382717,70.76851851851852,65.9074074074074,21.374458874458874,36.25541125541125,55.53703703703704,60.29012345679012,60.39814814814815 13 | 2020/3/12,84.59567901234568,72.06481481481481,107.1574074074074,89.34876543209877,127.57407407407408,120.98456790123458,87.94444444444446,30.167748917748916,44.50757575757576,34.63203463203463,62.23456790123457,52.40432098765432 14 | 2020/3/13,41.396103896103895,59.101851851851855,82.43518518518519,63.42283950617284,112.23456790123457,125.62962962962963,83.2993827160494,38.5551948051948,27.86796536796537,32.73809523809524,43.01948051948052,35.30844155844156 15 | 2020/3/14,51.21604938271605,44.50757575757576,32.196969696969695,40.58441558441558,51.54012345679013,58.12962962962963,72.82098765432099,14.88095238095238,25.568181818181817,32.73809523809524,54.99691358024692,46.807359307359306 16 | 2020/3/15,61.910493827160494,64.71913580246914,66.23148148148148,69.04012345679013,81.13888888888889,80.70679012345678,66.23148148148148,36.12012987012987,56.50925925925926,58.885802469135804,62.882716049382715,55.320987654320994 17 | 2020/3/16,52.83641975308642,64.61111111111111,81.35493827160494,81.35493827160494,78.00617283950618,71.5246913580247,68.5,53.48456790123456,46.807359307359306,48.97186147186147,59.425925925925924,47.75432900432901 18 | 2020/3/17,79.4104938271605,79.08641975308642,84.91975308641975,77.35802469135803,78.5462962962963,80.59876543209877,75.08950617283952,43.154761904761905,46.40151515151515,49.51298701298701,78.00617283950618,68.39197530864197 19 | 2020/3/18,85.13580246913581,80.38271604938272,88.26851851851853,99.61111111111111,113.42283950617283,103.1604938271605,91.07716049382717,47.61904761904761,43.560606060606055,58.4537037037037,106.40123456790124,94.20987654320987 20 | 2020/3/19,93.56172839506173,96.91049382716051,89.34876543209877,95.39814814814815,107.37345679012347,101.77160493827162,90.86111111111111,55.861111111111114,51.432098765432094,57.04938271604938,100.04320987654322,85.35185185185185 21 | 2020/3/20,88.70061728395063,81.13888888888889,83.94753086419753,78.33024691358025,119.25617283950618,120.55246913580247,96.26234567901236,27.056277056277057,43.96645021645021,68.5,87.08024691358025,72.06481481481481 22 | 2020/3/21,70.2283950617284,75.30555555555556,95.50617283950618,76.38580246913581,104.67283950617283,96.26234567901236,104.24074074074075,24.08008658008658,33.27922077922078,31.926406926406926,81.35493827160494,73.14506172839506 23 | 2020/3/22,69.47222222222223,77.25,89.88888888888889,69.68827160493828,83.2993827160494,74.65740740740742,84.05555555555557,48.29545454545455,42.884199134199136,56.07716049382716,73.25308641975309,76.49382716049382 24 | 2020/3/23,67.95987654320989,76.49382716049382,73.79320987654322,79.08641975308642,96.37037037037038,89.02469135802471,84.05555555555557,55.320987654320994,57.80555555555556,60.72222222222222,69.68827160493828,62.7746913580247 25 | 2020/3/24,51.324074074074076,51.97222222222222,85.13580246913581,67.31172839506173,90.21296296296296,97.55864197530866,105.96913580246913,37.878787878787875,49.37770562770563,44.1017316017316,46.942640692640694,39.77272727272727 26 | 2020/3/25,79.95061728395062,82.43518518518519,97.55864197530866,81.89506172839506,120.01234567901236,107.69753086419753,85.45987654320989,34.36147186147186,35.984848484848484,34.09090909090909,81.24691358024693,63.20679012345679 27 | 2020/3/26,76.06172839506173,69.14814814814815,78.00617283950618,80.81481481481482,102.52777777777779,90.64506172839506,75.73765432098766,51.864197530864196,36.12012987012987,43.154761904761905,94.53395061728395,57.48148148148148 28 | 2020/3/27,68.0679012345679,62.01851851851852,57.26543209876544,43.96645021645021,53.26851851851852,45.31926406926407,48.43073593073593,46.807359307359306,32.061688311688314,49.6482683982684,77.25,70.55246913580248 29 | 2020/3/28,22.186147186147185,25.568181818181817,27.056277056277057,21.103896103896105,36.66125541125541,36.93181818181818,48.02489177489177,39.5021645021645,17.58658008658009,11.904761904761903,20.02164502164502,17.316017316017316 30 | 2020/3/29,29.76190476190476,29.085497835497836,34.9025974025974,25.83874458874459,38.28463203463203,48.97186147186147,48.701298701298704,15.286796536796535,18.26298701298701,15.016233766233766,31.79112554112554,21.915584415584416 31 | 2020/3/30,28.273809523809526,37.60822510822511,64.50308641975309,43.96645021645021,75.73765432098766,78.5462962962963,57.26543209876544,18.804112554112557,17.72186147186147,20.156926406926406,34.496753246753244,32.60281385281385 32 | 2020/3/31,33.41450216450216,37.33766233766234,57.48148148148148,41.93722943722943,77.35802469135803,73.36111111111111,73.14506172839506,32.60281385281385,25.83874458874459,15.016233766233766,37.743506493506494,22.591991341991342 33 | -------------------------------------------------------------------------------- /space_train/space_1.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/1/1,22.997835497835496,26.92099567099567,22.456709956709958,27.597402597402596,49.24242424242424,52.620370370370374,72.49691358024693,10.957792207792208,11.228354978354979,12.716450216450216,30.57359307359307,17.857142857142858 3 | 2020/1/2,29.626623376623375,39.77272727272727,43.425324675324674,45.99567099567099,58.0216049382716,62.66666666666667,70.76851851851852,12.851731601731602,19.48051948051948,14.61038961038961,31.520562770562773,20.562770562770563 4 | 2020/1/3,51.324074074074076,60.830246913580254,96.26234567901236,84.91975308641975,98.31481481481482,89.24074074074075,76.8179012345679,20.02164502164502,24.62121212121212,23.538961038961038,51.75617283950617,26.92099567099567 5 | 2020/1/4,74.65740740740742,101.2314814814815,132.4351851851852,120.76851851851852,151.06386861313868,137.08024691358025,108.8858024691358,24.485930735930737,23.809523809523807,27.86796536796537,49.91883116883117,28.814935064935064 6 | 2020/1/5,71.0925925925926,105.64506172839506,137.2962962962963,123.57716049382717,141.1851851851852,108.56172839506172,102.18827160493828,28.95021645021645,31.520562770562773,32.332251082251084,77.46604938271605,25.703463203463205 7 | 2020/1/6,102.31172839506172,112.77469135802468,107.37345679012347,101.77160493827162,127.35802469135803,124.76543209876543,110.93827160493828,16.36904761904762,25.162337662337663,26.244588744588746,115.58333333333334,83.62345679012346 8 | 2020/1/7,84.81172839506173,77.6820987654321,75.73765432098766,106.94135802469135,106.2932098765432,108.12962962962963,105.86111111111111,31.926406926406926,24.891774891774894,34.76731601731602,93.34567901234568,77.35802469135803 9 | 2020/1/8,53.70061728395062,58.561728395061735,57.157407407407405,64.50308641975309,74.22530864197532,86.64814814814815,99.61111111111111,43.96645021645021,44.1017316017316,48.29545454545455,58.34567901234568,45.048701298701296 10 | 2020/1/9,58.4537037037037,60.39814814814815,77.14197530864197,62.126543209876544,86.54012345679013,97.23456790123458,103.37654320987653,33.41450216450216,43.69588744588745,46.807359307359306,53.052469135802475,42.07251082251082 11 | 2020/1/10,57.26543209876544,60.29012345679012,77.03395061728395,76.70987654320989,99.39506172839506,98.96296296296296,105.96913580246913,24.350649350649352,29.626623376623375,26.515151515151512,62.66666666666667,41.80194805194805 12 | 2020/1/11,60.1820987654321,65.15123456790124,71.0925925925926,75.08950617283952,113.31481481481481,107.0493827160494,103.05246913580247,39.908008658008654,23.944805194805195,35.03787878787879,60.39814814814815,54.56481481481482 13 | 2020/1/12,31.926406926406926,39.231601731601735,30.844155844155843,32.87337662337662,59.533950617283956,58.12962962962963,74.76543209876544,22.321428571428573,21.645021645021647,16.36904761904762,39.231601731601735,32.60281385281385 14 | 2020/1/13,54.56481481481482,58.66975308641975,54.78086419753086,56.07716049382716,73.46913580246914,70.76851851851852,75.95370370370371,15.963203463203463,17.992424242424242,23.538961038961038,58.0216049382716,46.672077922077925 15 | 2020/1/14,58.66975308641975,60.93827160493827,56.50925925925926,55.861111111111114,83.19135802469137,83.62345679012346,77.03395061728395,30.167748917748916,23.403679653679653,31.79112554112554,58.12962962962963,54.78086419753086 16 | 2020/1/15,59.425925925925924,68.5,60.93827160493827,67.74382716049382,85.89197530864197,83.94753086419753,89.45679012345678,20.02164502164502,32.196969696969695,43.69588744588745,48.701298701298704,43.83116883116883 17 | 2020/1/16,41.260822510822514,54.67283950617284,56.07716049382716,54.0246913580247,85.13580246913581,87.62037037037038,82.00308641975309,29.491341991341994,25.83874458874459,25.974025974025974,45.31926406926407,41.66666666666667 18 | 2020/1/17,19.48051948051948,25.703463203463205,28.95021645021645,25.432900432900432,57.04938271604938,61.4783950617284,77.46604938271605,24.485930735930737,19.20995670995671,10.416666666666668,20.833333333333336,15.016233766233766 19 | 2020/1/18,56.50925925925926,54.456790123456784,43.154761904761905,46.13095238095238,70.6604938271605,70.2283950617284,80.92283950617285,12.987012987012987,23.674242424242426,25.568181818181817,58.885802469135804,51.54012345679013 20 | 2020/1/19,78.5462962962963,82.75925925925927,72.49691358024693,78.1141975308642,100.58333333333334,102.31172839506172,105.75308641975309,25.83874458874459,27.86796536796537,25.297619047619047,74.44135802469137,58.561728395061735 21 | 2020/1/20,61.4783950617284,68.9320987654321,65.9074074074074,65.25925925925927,87.94444444444446,89.02469135802471,99.39506172839506,21.645021645021647,36.7965367965368,41.396103896103895,63.74691358024692,57.91358024691358 22 | 2020/1/21,101.0,86.75617283950618,80.81481481481482,80.2746913580247,113.63888888888889,113.31481481481481,121.74074074074075,35.984848484848484,64.82716049382717,68.5,88.05246913580248,71.30864197530865 23 | 2020/1/22,120.01234567901236,118.9320987654321,94.75,114.71913580246914,141.1851851851852,138.26851851851853,102.40432098765432,25.703463203463205,42.20779220779221,44.642857142857146,122.92901234567903,89.56481481481482 24 | 2020/1/23,93.8858024691358,108.66975308641976,66.01543209876544,106.40123456790124,101.0,87.94444444444446,77.57407407407408,22.591991341991342,24.891774891774894,40.58441558441558,92.4814814814815,65.04320987654322 25 | 2020/1/24,63.09876543209877,102.0956790123457,79.30246913580248,90.96913580246914,116.55555555555556,101.98765432098766,79.4104938271605,24.350649350649352,39.5021645021645,40.58441558441558,64.50308641975309,84.27160493827161 26 | 2020/1/25,30.303030303030305,41.66666666666667,36.25541125541125,43.69588744588745,60.39814814814815,68.5,84.1635802469136,19.20995670995671,33.41450216450216,29.085497835497836,24.485930735930737,24.08008658008658 27 | 2020/1/26,8.928571428571429,15.963203463203463,11.498917748917748,11.634199134199134,23.538961038961038,30.70887445887446,36.12012987012987,22.456709956709958,21.103896103896105,14.339826839826841,11.634199134199134,15.286796536796535 28 | 2020/1/27,13.257575757575756,16.91017316017316,10.01082251082251,8.928571428571429,17.18073593073593,18.3982683982684,25.703463203463205,29.897186147186147,14.204545454545455,16.504329004329005,15.286796536796535,13.257575757575756 29 | 2020/1/28,20.968614718614717,26.785714285714285,21.645021645021647,20.42748917748918,30.167748917748916,35.03787878787879,44.642857142857146,25.568181818181817,11.769480519480519,13.122294372294373,24.215367965367964,24.08008658008658 30 | 2020/1/29,31.79112554112554,33.1439393939394,25.974025974025974,23.26839826839827,28.95021645021645,30.303030303030305,40.4491341991342,19.75108225108225,16.774891774891774,28.40909090909091,34.09090909090909,32.196969696969695 31 | 2020/1/30,70.98456790123457,75.41358024691358,65.9074074074074,66.3395061728395,79.73456790123457,72.06481481481481,65.4753086419753,44.37229437229437,55.53703703703704,76.27777777777779,84.05555555555557,74.87345679012346 32 | 2020/1/31,92.4814814814815,85.13580246913581,75.95370370370371,87.40432098765433,102.0956790123457,109.53395061728395,85.02777777777779,66.23148148148148,70.98456790123457,81.13888888888889,102.29629629629629,87.7283950617284 33 | -------------------------------------------------------------------------------- /space_train/space_10.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/10/1,44.50757575757576,53.376543209876544,42.34307359307359,55.64506172839506,75.41358024691358,91.18518518518519,57.157407407407405,26.650432900432904,45.99567099567099,42.34307359307359,46.26623376623377,43.154761904761905 3 | 2020/10/2,53.48456790123456,56.7253086419753,65.79938271604938,69.7962962962963,82.86728395061729,79.30246913580248,62.882716049382715,31.114718614718615,45.72510822510823,43.83116883116883,51.75617283950617,44.1017316017316 4 | 2020/10/3,52.51234567901234,60.72222222222222,69.90432098765433,89.88888888888889,79.73456790123457,77.6820987654321,74.65740740740742,19.615800865800868,35.03787878787879,24.485930735930737,37.06709956709957,24.350649350649352 5 | 2020/10/4,56.18518518518518,65.79938271604938,68.0679012345679,80.05864197530865,87.40432098765433,76.38580246913581,69.3641975308642,17.857142857142858,23.809523809523807,22.591991341991342,40.4491341991342,26.10930735930736 6 | 2020/10/5,41.531385281385276,39.231601731601735,40.17857142857143,51.0,79.4104938271605,75.73765432098766,61.4783950617284,20.156926406926406,23.944805194805195,23.674242424242426,40.31385281385281,35.03787878787879 7 | 2020/10/6,30.303030303030305,31.25,23.944805194805195,31.655844155844157,45.31926406926407,49.37770562770563,68.5,24.891774891774894,26.92099567099567,17.857142857142858,37.06709956709957,35.849567099567096 8 | 2020/10/7,32.196969696969695,30.167748917748916,29.085497835497836,34.63203463203463,44.50757575757576,54.456790123456784,64.82716049382717,27.73268398268398,26.92099567099567,23.133116883116884,38.14935064935065,33.41450216450216 9 | 2020/10/8,34.36147186147186,34.63203463203463,25.974025974025974,36.7965367965368,54.456790123456784,60.1820987654321,78.43827160493828,35.849567099567096,35.57900432900433,22.997835497835496,46.40151515151515,40.31385281385281 10 | 2020/10/9,44.23701298701299,34.63203463203463,30.032467532467532,37.47294372294372,56.50925925925926,64.28703703703704,70.6604938271605,34.496753246753244,35.17316017316018,18.533549783549784,44.50757575757576,36.39069264069264 11 | 2020/10/10,35.984848484848484,35.30844155844156,29.22077922077922,38.69047619047619,55.10493827160494,64.93518518518519,72.92901234567901,26.10930735930736,30.032467532467532,14.475108225108224,35.57900432900433,32.73809523809524 12 | 2020/10/11,25.974025974025974,27.597402597402596,38.96103896103896,39.77272727272727,60.830246913580254,69.7962962962963,68.82407407407408,14.61038961038961,20.29220779220779,5.324074074074074,22.862554112554115,16.504329004329005 13 | 2020/10/12,22.591991341991342,23.944805194805195,36.93181818181818,41.93722943722943,59.858024691358025,60.830246913580254,56.50925925925926,10.957792207792208,13.392857142857142,7.445987654320987,20.156926406926406,14.61038961038961 14 | 2020/10/13,23.133116883116884,21.645021645021647,32.467532467532465,38.5551948051948,72.06481481481481,75.08950617283952,71.41666666666667,7.169913419913421,15.151515151515152,13.122294372294373,26.10930735930736,26.244588744588746 15 | 2020/10/14,33.54978354978355,31.385281385281385,48.701298701298704,60.39814814814815,83.7314814814815,81.89506172839506,71.5246913580247,32.467532467532465,35.984848484848484,26.785714285714285,42.884199134199136,40.04329004329004 16 | 2020/10/15,33.27922077922078,31.385281385281385,63.20679012345679,63.20679012345679,84.27160493827161,76.8179012345679,64.71913580246914,45.99567099567099,41.93722943722943,38.41991341991342,43.29004329004329,36.12012987012987 17 | 2020/10/16,40.31385281385281,40.31385281385281,64.39506172839506,73.79320987654322,86.97222222222223,85.67592592592592,72.60493827160494,41.93722943722943,46.26623376623377,38.14935064935065,43.69588744588745,42.74891774891775 18 | 2020/10/17,33.955627705627705,26.37987012987013,28.679653679653683,33.54978354978355,60.830246913580254,77.46604938271605,81.78703703703704,38.82575757575758,27.597402597402596,28.003246753246753,40.31385281385281,31.520562770562773 19 | 2020/10/18,38.14935064935065,29.76190476190476,21.50974025974026,37.06709956709957,47.48376623376623,57.80555555555556,64.07098765432099,13.392857142857142,13.663419913419911,13.392857142857142,36.93181818181818,38.96103896103896 20 | 2020/10/19,38.41991341991342,29.356060606060606,22.591991341991342,35.44372294372294,55.861111111111114,61.802469135802475,64.39506172839506,18.66883116883117,17.4512987012987,21.23917748917749,42.884199134199136,43.96645021645021 21 | 2020/10/20,37.743506493506494,34.226190476190474,37.60822510822511,47.48376623376623,63.31481481481482,69.25617283950618,72.28086419753086,30.032467532467532,32.061688311688314,27.597402597402596,40.71969696969697,41.260822510822514 22 | 2020/10/21,22.0508658008658,29.356060606060606,45.99567099567099,52.620370370370374,69.7962962962963,78.33024691358025,86.21604938271605,11.228354978354979,16.098484848484848,9.604978354978355,26.37987012987013,20.968614718614717 23 | 2020/10/22,20.562770562770563,21.374458874458874,19.074675324675326,23.674242424242426,39.120370370370374,45.589826839826834,71.20061728395062,10.822510822510823,16.550925925925927,8.116883116883116,28.138528138528137,19.345238095238095 24 | 2020/10/23,65.36728395061729,58.99382716049382,27.326839826839823,48.02489177489177,45.589826839826834,58.885802469135804,67.52777777777779,34.76731601731602,31.655844155844157,24.62121212121212,74.22530864197532,66.98765432098766 25 | 2020/10/24,45.048701298701296,45.048701298701296,41.125541125541126,54.0246913580247,64.93518518518519,78.43827160493828,83.40740740740742,40.71969696969697,40.71969696969697,45.048701298701296,58.34567901234568,45.048701298701296 26 | 2020/10/25,18.3982683982684,31.926406926406926,63.74691358024692,59.533950617283956,89.02469135802471,94.10185185185186,56.293209876543216,22.186147186147185,22.321428571428573,20.42748917748918,33.82034632034632,22.727272727272727 27 | 2020/10/26,18.804112554112557,36.39069264069264,55.10493827160494,46.53679653679654,76.60185185185185,69.04012345679013,78.1141975308642,23.26839826839827,25.432900432900432,22.321428571428573,34.36147186147186,26.244588744588746 28 | 2020/10/27,23.538961038961038,43.69588744588745,59.75,66.66358024691358,82.65123456790124,85.24382716049382,77.89814814814815,23.538961038961038,33.54978354978355,33.82034632034632,46.807359307359306,37.33766233766234 29 | 2020/10/28,35.714285714285715,52.08024691358025,62.882716049382715,68.0679012345679,95.1820987654321,101.98765432098766,89.02469135802471,23.403679653679653,35.30844155844156,40.04329004329004,58.561728395061735,47.75432900432901 30 | 2020/10/29,37.06709956709957,44.77813852813853,48.701298701298704,54.78086419753086,82.00308641975309,91.40123456790124,84.48765432098767,27.73268398268398,37.743506493506494,37.743506493506494,49.37770562770563,41.125541125541126 31 | 2020/10/30,42.34307359307359,48.701298701298704,43.69588744588745,51.432098765432094,66.44753086419753,74.87345679012346,88.26851851851853,34.76731601731602,43.01948051948052,46.13095238095238,53.48456790123456,46.26623376623377 32 | 2020/10/31,25.617283950617285,37.60822510822511,42.34307359307359,54.0246913580247,69.90432098765433,78.43827160493828,77.6820987654321,31.25,38.41991341991342,33.82034632034632,41.242283950617285,35.03787878787879 33 | -------------------------------------------------------------------------------- /space_train/space_12.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/12/1,25.703463203463205,15.692640692640692,25.027056277056275,35.849567099567096,57.04938271604938,65.15123456790124,78.9783950617284,17.18073593073593,16.774891774891774,21.645021645021647,44.23701298701299,33.1439393939394 3 | 2020/12/2,25.432900432900432,20.968614718614717,30.032467532467532,41.531385281385276,51.432098765432094,63.63888888888889,75.52160493827161,26.244588744588746,19.074675324675326,19.345238095238095,40.04329004329004,30.032467532467532 4 | 2020/12/3,26.515151515151512,20.156926406926406,29.491341991341994,31.25,33.27922077922078,38.96103896103896,44.23701298701299,19.20995670995671,17.58658008658009,9.74025974025974,42.34307359307359,27.326839826839823 5 | 2020/12/4,18.533549783549784,11.904761904761903,23.403679653679653,35.44372294372294,38.96103896103896,46.26623376623377,51.97222222222222,16.504329004329005,13.528138528138529,6.628787878787878,35.57900432900433,22.862554112554115 6 | 2020/12/5,15.286796536796535,7.575757575757576,24.485930735930737,32.332251082251084,47.21320346320346,56.293209876543216,62.7746913580247,12.175324675324676,10.957792207792208,7.711038961038961,27.326839826839823,25.432900432900432 7 | 2020/12/6,8.526234567901236,7.711038961038961,44.913419913419915,35.30844155844156,61.802469135802475,63.20679012345679,74.22530864197532,12.851731601731602,14.745670995670997,7.44047619047619,21.50974025974026,14.475108225108224 8 | 2020/12/7,14.204545454545455,15.827922077922079,29.085497835497836,69.68827160493828,61.58641975308642,62.66666666666667,71.74074074074075,10.822510822510823,16.504329004329005,6.4935064935064934,26.92099567099567,14.204545454545455 9 | 2020/12/8,7.44047619047619,15.286796536796535,30.844155844155843,42.20779220779221,54.99691358024692,45.048701298701296,71.63271604938271,10.416666666666668,11.769480519480519,8.658008658008658,25.703463203463205,13.798701298701298 10 | 2020/12/9,10.957792207792208,20.968614718614717,43.83116883116883,34.496753246753244,47.75432900432901,61.15432098765432,72.49691358024693,14.745670995670997,14.339826839826841,8.522727272727273,23.944805194805195,15.692640692640692 11 | 2020/12/10,21.50974025974026,38.41991341991342,46.672077922077925,42.74891774891775,58.99382716049382,69.58024691358025,75.84567901234568,9.334415584415584,11.228354978354979,7.034632034632034,31.655844155844157,19.345238095238095 12 | 2020/12/11,25.703463203463205,40.4491341991342,39.908008658008654,49.37770562770563,77.14197530864197,86.21604938271605,116.3395061728395,10.687229437229437,16.774891774891774,8.793290043290044,31.520562770562773,16.91017316017316 13 | 2020/12/12,62.882716049382715,67.52777777777779,48.97186147186147,68.39197530864197,88.05246913580248,101.10802469135803,115.15123456790124,12.445887445887447,32.061688311688314,41.260822510822514,75.41358024691358,72.49691358024693 14 | 2020/12/13,93.8858024691358,106.07716049382717,83.7314814814815,112.3425925925926,146.4783950617284,143.99382716049385,128.43827160493828,22.727272727272727,37.743506493506494,51.0,95.39814814814815,78.76234567901236 15 | 2020/12/14,29.491341991341994,48.97186147186147,44.37229437229437,66.3395061728395,103.26851851851852,124.87345679012347,142.0493827160494,21.645021645021647,21.780303030303028,16.504329004329005,34.09090909090909,28.273809523809526 16 | 2020/12/15,12.31060606060606,18.939393939393938,27.73268398268398,35.44372294372294,44.37229437229437,58.885802469135804,63.53086419753086,7.846320346320346,9.875541125541124,10.822510822510823,27.462121212121215,18.3982683982684 17 | 2020/12/16,11.228354978354979,15.827922077922079,26.244588744588746,32.467532467532465,48.43073593073593,56.50925925925926,70.01234567901234,8.116883116883116,6.764069264069264,9.334415584415584,29.22077922077922,18.127705627705627 18 | 2020/12/17,11.769480519480519,17.18073593073593,33.82034632034632,39.231601731601735,51.97222222222222,58.34567901234568,65.04320987654322,9.875541125541124,13.392857142857142,11.228354978354979,25.83874458874459,19.345238095238095 19 | 2020/12/18,17.992424242424242,26.10930735930736,51.108024691358025,41.80194805194805,69.47222222222223,75.62962962962963,79.08641975308642,9.469696969696969,20.156926406926406,8.387445887445887,32.467532467532465,25.568181818181817 20 | 2020/12/19,21.780303030303028,19.074675324675326,30.303030303030305,32.73809523809524,39.908008658008654,49.91883116883117,60.1820987654321,14.204545454545455,17.72186147186147,9.74025974025974,32.467532467532465,24.485930735930737 21 | 2020/12/20,12.716450216450216,17.58658008658009,18.127705627705627,30.70887445887446,42.07251082251082,53.80864197530864,60.93827160493827,10.146103896103895,12.04004329004329,10.01082251082251,26.10930735930736,22.186147186147185 22 | 2020/12/21,11.498917748917748,8.522727272727273,28.95021645021645,36.7965367965368,58.885802469135804,64.71913580246914,73.68518518518519,7.846320346320346,17.18073593073593,11.228354978354979,29.897186147186147,22.186147186147185 23 | 2020/12/22,16.098484848484848,23.674242424242426,48.29545454545455,40.17857142857143,50.18939393939394,65.69135802469137,66.44753086419753,7.44047619047619,12.445887445887447,12.31060606060606,31.655844155844157,29.626623376623375 24 | 2020/12/23,25.027056277056275,30.979437229437227,47.75432900432901,38.41991341991342,65.25925925925927,78.5462962962963,90.96913580246914,7.981601731601732,12.445887445887447,21.374458874458874,36.39069264069264,43.01948051948052 25 | 2020/12/24,61.26234567901234,64.07098765432099,55.75308641975308,61.69444444444444,62.882716049382715,73.25308641975309,79.51851851851852,12.175324675324676,27.191558441558442,31.520562770562773,80.16666666666667,72.06481481481481 26 | 2020/12/25,49.91883116883117,57.48148148148148,56.07716049382716,71.84876543209877,92.37345679012347,103.7006172839506,127.46604938271606,30.167748917748916,34.226190476190474,43.29004329004329,68.5,58.99382716049382 27 | 2020/12/26,43.01948051948052,51.648148148148145,52.83641975308642,62.126543209876544,84.70370370370371,94.75,80.92283950617285,23.809523809523807,23.26839826839827,28.54437229437229,51.75617283950617,41.80194805194805 28 | 2020/12/27,58.885802469135804,61.802469135802475,42.884199134199136,64.71913580246914,87.08024691358025,84.05555555555557,77.25,22.862554112554115,25.297619047619047,36.12012987012987,62.7746913580247,49.24242424242424 29 | 2020/12/28,38.5551948051948,46.807359307359306,48.97186147186147,57.589506172839506,66.66358024691358,75.73765432098766,73.68518518518519,23.944805194805195,40.71969696969697,37.202380952380956,49.107142857142854,52.2962962962963 30 | 2020/12/29,71.74074074074075,83.83950617283952,96.91049382716051,94.10185185185186,125.95370370370371,133.7314814814815,125.95370370370371,17.857142857142858,35.984848484848484,34.63203463203463,76.92592592592592,62.7746913580247 31 | 2020/12/30,47.077922077922075,48.02489177489177,42.07251082251082,54.56481481481482,58.561728395061735,70.55246913580248,76.92592592592592,26.244588744588746,35.714285714285715,32.60281385281385,60.1820987654321,55.10493827160494 32 | 2020/12/31,49.24242424242424,51.0,54.132716049382715,62.45061728395062,65.25925925925927,70.44444444444444,75.30555555555556,30.70887445887446,46.53679653679654,51.21604938271605,61.910493827160494,55.21296296296296 33 | -------------------------------------------------------------------------------- /origin_6AQI_label.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Mon Jan 11 09:50:11 2021 4 | 5 | @author: ray 6 | """ 7 | 8 | import numpy as np 9 | import pandas as pd 10 | result_all = pd.DataFrame() 11 | for month_num in range(1,13): 12 | df_data = pd.read_csv('./time/time_'+ str(month_num) +'.csv', index_col= False) 13 | new_frame = pd.read_csv('train_frame.csv') 14 | # df_data_drop = df_data[(True-df_data.isin(['x']))] 15 | result = pd.DataFrame() 16 | 17 | days = int(df_data.shape[0]/11) 18 | # for num, col in enumerate(df_data.iloc[:,6]): 19 | data_temp = pd.DataFrame() 20 | AQI_result = np.zeros(shape=[5, days]) 21 | 22 | for day_num in range(days): 23 | data_temp = df_data.iloc[day_num*11:(day_num*11)+11, :].reset_index() 24 | ItemId = data_temp["ItemId"] 25 | for Id_num in range(11): 26 | if(ItemId[Id_num]==3): 27 | AQI_O3 = 0 28 | mean_O3 = 0 29 | O3 = data_temp.iloc[Id_num, 8:].astype(float) 30 | mean_O3 = O3.mean() 31 | if(mean_O3 < 125): 32 | AQI_O3 = 0 33 | if(mean_O3 >= 125 and mean_O3 <= 164): 34 | AQI_O3 = (mean_O3-125)*(49/39)+101 35 | if(mean_O3 > 164): 36 | AQI_O3 = (mean_O3-165)*(49/39)+151 37 | # print('AQI_O3', AQI_O3) 38 | 39 | if(ItemId[Id_num]==33): 40 | AQI_PM25 = 0 41 | mean_PM25 = 0 42 | PM25 = data_temp.iloc[Id_num,8:].astype(float) 43 | mean_PM25 = PM25.mean() 44 | if(mean_PM25 < 15.5): 45 | AQI_PM25 = (mean_PM25)*(50/15.4) 46 | if(mean_PM25 >=15.5 and mean_PM25 <35.4): 47 | AQI_PM25 = (mean_PM25-15.5)*(49/18.9)+51 48 | if(mean_PM25 >=35.4 and mean_PM25 <54.4): 49 | AQI_PM25 = (mean_PM25-35.5)*(49/18.9)+101 50 | if(mean_PM25 >=54.4): 51 | AQI_PM25 = (mean_PM25-54.5)*(49/95.9)+151 52 | # print('AQI_PM25', AQI_PM25) 53 | 54 | if(ItemId[Id_num]==4): 55 | AQI_PM10 = 0 56 | mean_PM10 = 0 57 | PM10 = data_temp.iloc[Id_num, 8:].astype(float) 58 | mean_PM10 = PM10.mean() 59 | if(mean_PM10 < 54): 60 | AQI_PM10 = (mean_PM10)*(50/54) 61 | if(mean_PM10 >=54 and mean_PM10 <125): 62 | AQI_PM10 = (mean_PM25-54)*(49/70)+51 63 | if(mean_PM10 >=125 and mean_PM10 <254): 64 | AQI_PM10 = (mean_PM25-125)*(49/128)+101 65 | if(mean_PM10 >=254): 66 | AQI_PM10 = (mean_PM25-254)*(49/99)+151 67 | # print('AQI_PM10', AQI_PM10) 68 | 69 | if(ItemId[Id_num]==2): 70 | AQI_CO = 0 71 | mean_CO = 0 72 | CO = data_temp.iloc[Id_num, 8:].astype(float) 73 | mean_CO = CO.mean() 74 | if(mean_CO < 4.4): 75 | AQI_CO = (mean_CO)*(50/4.4) 76 | if(mean_CO >=4.4 and mean_CO <9.4): 77 | AQI_CO = (mean_CO-4.4)*(49/4.9)+51 78 | if(mean_CO >=9.4 and mean_CO <12.4): 79 | AQI_CO = (mean_CO-9.4)*(49/2.9)+101 80 | if(mean_CO >=12.4): 81 | AQI_CO = (mean_CO-12.4)*(49/2.9)+151 82 | # print('AQI_CO', AQI_CO) 83 | 84 | if(ItemId[Id_num]==1): 85 | AQI_SO2 = 0 86 | mean_SO2 = 0 87 | SO2 = data_temp.iloc[Id_num, 8:].astype(float) 88 | mean_SO2 = SO2.mean() 89 | if(mean_SO2 < 35): 90 | AQI_SO2 = (mean_SO2)*(50/35) 91 | if(mean_SO2 >=35 and mean_SO2 <75): 92 | AQI_SO2 = (mean_SO2-35)*(49/39)+51 93 | if(mean_SO2 >=75 and mean_SO2 <185): 94 | AQI_SO2 = (mean_SO2-75)*(49/109)+101 95 | if(mean_SO2 >=185): 96 | AQI_SO2 = (mean_SO2-185)*(49/118)+151 97 | # print('AQI_SO2', AQI_SO2) 98 | 99 | # if(ItemId[Id_num]==144): 100 | # wind_direct = data_temp.iloc[Id_num, 8:].astype(float) 101 | # mean_wind_direct = wind_direct.mean() 102 | 103 | # if(ItemId[Id_num]==14): 104 | # temper = data_temp.iloc[Id_num, 8:].astype(float) 105 | # mean_temper = temper.mean() 106 | 107 | # if(ItemId[Id_num]==23): 108 | # rain = data_temp.iloc[Id_num, 8:].astype(float) 109 | # mean_rain = rain.sum() 110 | 111 | # if(ItemId[Id_num]==38): 112 | # humidity = data_temp.iloc[Id_num, 8:].astype(float) 113 | # mean_humidity = humidity.mean() 114 | 115 | # if(ItemId[Id_num]==144): 116 | # wind_speed = data_temp.iloc[Id_num, 8:].astype(float) 117 | # mean_wind_speed = wind_speed.mean() 118 | 119 | temp_AQI = np.max([AQI_CO, AQI_O3, AQI_PM10, AQI_PM25, AQI_SO2]) 120 | data_temp_result = np.array([mean_CO, mean_PM10, mean_PM25, mean_SO2, temp_AQI]) 121 | AQI_result[:, day_num] = data_temp_result.T 122 | new_frame.iloc[0, 2:7] = data_temp_result 123 | new_frame.iloc[0, 0] = data_temp.iloc[0, 7] 124 | result = pd.concat([result, new_frame], axis=0) 125 | 126 | result.to_csv('./time_train/time_'+ str(month_num) +'.csv', index = False) 127 | result_all = pd.concat([result_all, result], axis=0) 128 | 129 | result_all.to_csv('./time_train/origin_train_only6AQI.csv', index = False) 130 | 131 | # frame_3day = pd.read_csv('train_frame_3day.csv') 132 | # result_train = pd.DataFrame() 133 | 134 | # for train_num in range(363): 135 | # # col1 = pd.DataFrame(result_all.iloc[train_num, 2:8]).T 136 | # # col2 = pd.DataFrame(result_all.iloc[train_num+1, 2:8]).T 137 | # # col3 = pd.DataFrame(result_all.iloc[train_num+2, 2:8]).T 138 | # # label = pd.DataFrame(result_all.iloc[train_num+3, 7]) 139 | 140 | # # result_train_temp = pd.concat([col1, col2, col3, label], axis=1) 141 | # # result_train = pd.concat([result_train, result_train_temp], axis=0) 142 | 143 | # frame_3day.iloc[0, :6] = result_all.iloc[train_num, 2:8].values 144 | # frame_3day.iloc[0, 6:12] = result_all.iloc[train_num + 1, 2:8].values 145 | # frame_3day.iloc[0, 12:18]= result_all.iloc[train_num + 2, 2:8].values 146 | # frame_3day.iloc[0, 18] = result_all.iloc[train_num + 3, 7] 147 | # result_train = pd.concat([result_train, frame_3day], axis=0) 148 | 149 | # result_train.to_csv('./time_train/train_3day.csv', index = False) -------------------------------------------------------------------------------- /space_train/space_5.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/5/1,91.83333333333334,85.24382716049382,71.63271604938271,89.56481481481482,82.32716049382717,71.41666666666667,68.39197530864197,26.244588744588746,33.00865800865801,43.69588744588745,91.83333333333334,77.57407407407408 3 | 2020/5/2,77.35802469135803,66.66358024691358,57.04938271604938,70.01234567901234,64.17901234567901,38.82575757575758,37.878787878787875,19.615800865800868,19.48051948051948,37.06709956709957,78.65432098765433,74.76543209876544 4 | 2020/5/3,42.20779220779221,35.30844155844156,42.20779220779221,33.54978354978355,39.63744588744589,24.485930735930737,25.974025974025974,26.650432900432904,23.403679653679653,46.53679653679654,52.40432098765432,55.42901234567901 5 | 2020/5/4,40.99025974025974,37.06709956709957,42.20779220779221,31.385281385281385,39.09632034632035,31.79112554112554,36.66125541125541,40.31385281385281,37.60822510822511,51.432098765432094,49.6482683982684,54.0246913580247 6 | 2020/5/5,52.18827160493827,49.107142857142854,54.132716049382715,34.63203463203463,45.72510822510823,42.74891774891775,45.45454545454545,35.57900432900433,37.878787878787875,43.01948051948052,61.4783950617284,71.84876543209877 7 | 2020/5/6,38.14935064935065,29.356060606060606,28.679653679653683,26.37987012987013,27.73268398268398,22.321428571428573,28.95021645021645,25.974025974025974,36.7965367965368,45.45454545454545,37.06709956709957,39.366883116883116 8 | 2020/5/7,24.215367965367964,32.60281385281385,35.30844155844156,33.00865800865801,29.22077922077922,21.50974025974026,32.467532467532465,25.027056277056275,23.403679653679653,21.103896103896105,34.63203463203463,38.69047619047619 9 | 2020/5/8,38.82575757575758,35.984848484848484,42.47835497835498,28.54437229437229,32.60281385281385,21.103896103896105,30.70887445887446,28.95021645021645,17.857142857142858,30.032467532467532,43.69588744588745,36.7965367965368 10 | 2020/5/9,28.679653679653683,22.727272727272727,22.862554112554115,20.29220779220779,25.432900432900432,16.233766233766232,28.138528138528137,21.374458874458874,23.133116883116884,30.70887445887446,28.003246753246753,35.44372294372294 11 | 2020/5/10,34.496753246753244,25.703463203463205,24.215367965367964,17.4512987012987,25.297619047619047,13.392857142857142,21.780303030303028,17.72186147186147,31.25,30.979437229437227,37.878787878787875,45.589826839826834 12 | 2020/5/11,58.0216049382716,62.7746913580247,54.78086419753086,46.13095238095238,58.23765432098766,55.861111111111114,47.077922077922075,27.597402597402596,34.63203463203463,27.86796536796537,39.63744588744589,42.61363636363636 13 | 2020/5/12,53.48456790123456,57.69753086419753,60.39814814814815,56.07716049382716,87.62037037037038,78.33024691358025,67.09567901234567,42.07251082251082,36.39069264069264,28.814935064935064,53.48456790123456,48.02489177489177 14 | 2020/5/13,69.90432098765433,66.23148148148148,63.31481481481482,70.01234567901234,92.9135802469136,73.36111111111111,73.25308641975309,56.401234567901234,69.3641975308642,72.82098765432099,69.25617283950618,80.92283950617285 15 | 2020/5/14,76.70987654320989,77.79012345679013,65.36728395061729,76.27777777777779,67.41975308641975,49.91883116883117,65.04320987654322,62.01851851851852,65.4753086419753,71.84876543209877,84.48765432098767,70.76851851851852 16 | 2020/5/15,53.160493827160494,47.21320346320346,46.26623376623377,52.7283950617284,60.50617283950618,52.18827160493827,57.589506172839506,21.50974025974026,32.467532467532465,45.99567099567099,49.91883116883117,68.5 17 | 2020/5/16,35.44372294372294,33.41450216450216,37.60822510822511,38.41991341991342,53.160493827160494,51.75617283950617,31.655844155844157,14.61038961038961,14.88095238095238,26.10930735930736,38.5551948051948,45.31926406926407 18 | 2020/5/17,16.280864197530864,16.504329004329005,14.069264069264069,15.827922077922079,23.809523809523807,16.280864197530864,21.780303030303028,10.146103896103895,13.040123456790123,14.313271604938272,17.72186147186147,22.321428571428573 19 | 2020/5/18,27.056277056277057,21.374458874458874,22.186147186147185,22.0508658008658,23.674242424242426,17.72186147186147,20.156926406926406,17.045454545454547,15.93364197530864,19.345238095238095,26.10930735930736,28.54437229437229 20 | 2020/5/19,23.403679653679653,21.780303030303028,13.663419913419911,14.61038961038961,19.48051948051948,16.91017316017316,29.085497835497836,18.804112554112557,26.10930735930736,24.350649350649352,40.71969696969697,40.71969696969697 21 | 2020/5/20,32.73809523809524,27.326839826839823,34.226190476190474,14.339826839826841,23.809523809523807,17.72186147186147,26.244588744588746,13.798701298701298,21.50974025974026,26.244588744588746,45.589826839826834,35.849567099567096 22 | 2020/5/21,31.79112554112554,28.138528138528137,31.114718614718615,18.804112554112557,16.628086419753085,15.58641975308642,20.29220779220779,11.363636363636363,17.4512987012987,8.834876543209877,33.27922077922078,17.045454545454547 23 | 2020/5/22,10.281385281385282,21.374458874458874,10.957792207792208,8.522727272727273,13.257575757575756,6.057098765432099,13.798701298701298,12.987012987012987,20.562770562770563,7.214506172839506,20.02164502164502,15.963203463203463 24 | 2020/5/23,14.339826839826841,17.72186147186147,14.745670995670997,19.615800865800868,57.589506172839506,52.18827160493827,44.37229437229437,10.687229437229437,11.535493827160494,8.179012345679013,15.557359307359308,15.286796536796535 25 | 2020/5/24,30.032467532467532,31.114718614718615,26.515151515151512,24.08008658008658,59.641975308641975,54.348765432098766,48.16017316017316,7.575757575757576,8.522727272727273,14.204545454545455,25.83874458874459,23.26839826839827 26 | 2020/5/25,38.96103896103896,31.79112554112554,41.260822510822514,38.5551948051948,44.50757575757576,29.22077922077922,28.003246753246753,12.04004329004329,12.5,15.827922077922079,39.231601731601735,35.44372294372294 27 | 2020/5/26,28.40909090909091,24.215367965367964,23.133116883116884,22.321428571428573,25.568181818181817,16.774891774891774,21.780303030303028,13.933982683982684,17.045454545454547,15.557359307359308,30.844155844155843,30.43831168831169 28 | 2020/5/27,16.63961038961039,25.83874458874459,13.850308641975309,19.074675324675326,19.345238095238095,11.766975308641976,30.57359307359307,14.475108225108224,17.316017316017316,15.151515151515152,19.345238095238095,16.233766233766232 29 | 2020/5/28,28.679653679653683,30.43831168831169,36.39069264069264,36.12012987012987,33.27922077922078,23.944805194805195,23.133116883116884,17.4512987012987,7.575757575757576,7.523148148148148,28.40909090909091,13.122294372294373 30 | 2020/5/29,39.09632034632035,48.701298701298704,42.74891774891775,30.70887445887446,24.08008658008658,25.297619047619047,29.491341991341994,15.827922077922079,17.58658008658009,9.606481481481481,43.69588744588745,27.86796536796537 31 | 2020/5/30,25.297619047619047,18.939393939393938,18.66883116883117,13.88888888888889,20.949074074074073,18.364197530864196,18.3982683982684,15.286796536796535,15.8179012345679,20.02164502164502,29.22077922077922,36.39069264069264 32 | 2020/5/31,18.3982683982684,11.093073593073592,16.774891774891774,14.506172839506172,14.351851851851851,13.88888888888889,16.473765432098766,13.663419913419911,26.92099567099567,25.703463203463205,14.069264069264069,24.215367965367964 33 | -------------------------------------------------------------------------------- /only_6AQI.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Sun Jan 10 11:51:33 2021 4 | 5 | @author: ray 6 | """ 7 | 8 | import numpy as np 9 | import pandas as pd 10 | result_all = pd.DataFrame() 11 | for month_num in range(1,13): 12 | df_data = pd.read_csv('./time/time_'+ str(month_num) +'.csv', index_col= False) 13 | new_frame = pd.read_csv('train_frame.csv') 14 | # df_data_drop = df_data[(True-df_data.isin(['x']))] 15 | result = pd.DataFrame() 16 | 17 | days = int(df_data.shape[0]/11) 18 | # for num, col in enumerate(df_data.iloc[:,6]): 19 | data_temp = pd.DataFrame() 20 | AQI_result = np.zeros(shape=[5, days]) 21 | 22 | for day_num in range(days): 23 | data_temp = df_data.iloc[day_num*11:(day_num*11)+11, :].reset_index() 24 | ItemId = data_temp["ItemId"] 25 | for Id_num in range(11): 26 | if(ItemId[Id_num]==3): 27 | AQI_O3 = 0 28 | mean_O3 = 0 29 | O3 = data_temp.iloc[Id_num, 8:].astype(float) 30 | mean_O3 = O3.mean() 31 | if(mean_O3 < 125): 32 | AQI_O3 = 0 33 | if(mean_O3 >= 125 and mean_O3 <= 164): 34 | AQI_O3 = (mean_O3-125)*(49/39)+101 35 | if(mean_O3 > 164): 36 | AQI_O3 = (mean_O3-165)*(49/39)+151 37 | # print('AQI_O3', AQI_O3) 38 | 39 | if(ItemId[Id_num]==33): 40 | AQI_PM25 = 0 41 | mean_PM25 = 0 42 | PM25 = data_temp.iloc[Id_num,8:].astype(float) 43 | mean_PM25 = PM25.mean() 44 | if(mean_PM25 < 15.5): 45 | AQI_PM25 = (mean_PM25)*(50/15.4) 46 | if(mean_PM25 >=15.5 and mean_PM25 <35.4): 47 | AQI_PM25 = (mean_PM25-15.5)*(49/18.9)+51 48 | if(mean_PM25 >=35.4 and mean_PM25 <54.4): 49 | AQI_PM25 = (mean_PM25-35.5)*(49/18.9)+101 50 | if(mean_PM25 >=54.4): 51 | AQI_PM25 = (mean_PM25-54.5)*(49/95.9)+151 52 | # print('AQI_PM25', AQI_PM25) 53 | 54 | if(ItemId[Id_num]==4): 55 | AQI_PM10 = 0 56 | mean_PM10 = 0 57 | PM10 = data_temp.iloc[Id_num, 8:].astype(float) 58 | mean_PM10 = PM10.mean() 59 | if(mean_PM10 < 54): 60 | AQI_PM10 = (mean_PM10)*(50/54) 61 | if(mean_PM10 >=54 and mean_PM10 <125): 62 | AQI_PM10 = (mean_PM25-54)*(49/70)+51 63 | if(mean_PM10 >=125 and mean_PM10 <254): 64 | AQI_PM10 = (mean_PM25-125)*(49/128)+101 65 | if(mean_PM10 >=254): 66 | AQI_PM10 = (mean_PM25-254)*(49/99)+151 67 | # print('AQI_PM10', AQI_PM10) 68 | 69 | if(ItemId[Id_num]==2): 70 | AQI_CO = 0 71 | mean_CO = 0 72 | CO = data_temp.iloc[Id_num, 8:].astype(float) 73 | mean_CO = CO.mean() 74 | if(mean_CO < 4.4): 75 | AQI_CO = (mean_CO)*(50/4.4) 76 | if(mean_CO >=4.4 and mean_CO <9.4): 77 | AQI_CO = (mean_CO-4.4)*(49/4.9)+51 78 | if(mean_CO >=9.4 and mean_CO <12.4): 79 | AQI_CO = (mean_CO-9.4)*(49/2.9)+101 80 | if(mean_CO >=12.4): 81 | AQI_CO = (mean_CO-12.4)*(49/2.9)+151 82 | # print('AQI_CO', AQI_CO) 83 | 84 | if(ItemId[Id_num]==1): 85 | AQI_SO2 = 0 86 | mean_SO2 = 0 87 | SO2 = data_temp.iloc[Id_num, 8:].astype(float) 88 | mean_SO2 = SO2.mean() 89 | if(mean_SO2 < 35): 90 | AQI_SO2 = (mean_SO2)*(50/35) 91 | if(mean_SO2 >=35 and mean_SO2 <75): 92 | AQI_SO2 = (mean_SO2-35)*(49/39)+51 93 | if(mean_SO2 >=75 and mean_SO2 <185): 94 | AQI_SO2 = (mean_SO2-75)*(49/109)+101 95 | if(mean_SO2 >=185): 96 | AQI_SO2 = (mean_SO2-185)*(49/118)+151 97 | # print('AQI_SO2', AQI_SO2) 98 | 99 | # if(ItemId[Id_num]==144): 100 | # wind_direct = data_temp.iloc[Id_num, 8:].astype(float) 101 | # mean_wind_direct = wind_direct.mean() 102 | 103 | # if(ItemId[Id_num]==14): 104 | # temper = data_temp.iloc[Id_num, 8:].astype(float) 105 | # mean_temper = temper.mean() 106 | 107 | # if(ItemId[Id_num]==23): 108 | # rain = data_temp.iloc[Id_num, 8:].astype(float) 109 | # mean_rain = rain.sum() 110 | 111 | # if(ItemId[Id_num]==38): 112 | # humidity = data_temp.iloc[Id_num, 8:].astype(float) 113 | # mean_humidity = humidity.mean() 114 | 115 | # if(ItemId[Id_num]==144): 116 | # wind_speed = data_temp.iloc[Id_num, 8:].astype(float) 117 | # mean_wind_speed = wind_speed.mean() 118 | 119 | temp_AQI = np.max([AQI_CO, AQI_O3, AQI_PM10, AQI_PM25, AQI_SO2]) 120 | # print(temp_AQI) 121 | data_temp_result = np.array([AQI_CO, AQI_PM10, AQI_PM25, AQI_SO2, temp_AQI]) 122 | AQI_result[:, day_num] = data_temp_result 123 | new_frame.iloc[0, 2:7] = data_temp_result 124 | new_frame.iloc[0, 0] = data_temp.iloc[0, 7] 125 | result = pd.concat([result, new_frame], axis=0) 126 | 127 | result.to_csv('./time_train/time_'+ str(month_num) +'.csv', index = False) 128 | result_all = pd.concat([result_all, result], axis=0) 129 | 130 | result_all.to_csv('./time_train/train_only6AQI_3.csv', index = False) 131 | 132 | # frame_3day = pd.read_csv('train_frame_3day.csv') 133 | # result_train = pd.DataFrame() 134 | 135 | # for train_num in range(363): 136 | # # col1 = pd.DataFrame(result_all.iloc[train_num, 2:8]).T 137 | # # col2 = pd.DataFrame(result_all.iloc[train_num+1, 2:8]).T 138 | # # col3 = pd.DataFrame(result_all.iloc[train_num+2, 2:8]).T 139 | # # label = pd.DataFrame(result_all.iloc[train_num+3, 7]) 140 | 141 | # # result_train_temp = pd.concat([col1, col2, col3, label], axis=1) 142 | # # result_train = pd.concat([result_train, result_train_temp], axis=0) 143 | 144 | # frame_3day.iloc[0, :6] = result_all.iloc[train_num, 2:8].values 145 | # frame_3day.iloc[0, 6:12] = result_all.iloc[train_num + 1, 2:8].values 146 | # frame_3day.iloc[0, 12:18]= result_all.iloc[train_num + 2, 2:8].values 147 | # frame_3day.iloc[0, 18] = result_all.iloc[train_num + 3, 7] 148 | # result_train = pd.concat([result_train, frame_3day], axis=0) 149 | 150 | # result_train.to_csv('./time_train/train_3day.csv', index = False) -------------------------------------------------------------------------------- /space_train/space_8.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/8/1,87.40432098765433,59.533950617283956,41.260822510822514,42.47835497835498,35.17316017316018,30.979437229437227,45.048701298701296,10.281385281385282,15.625,15.625,48.43073593073593,7.407407407407407 3 | 2020/8/2,30.57359307359307,29.491341991341994,27.191558441558442,28.40909090909091,26.92099567099567,25.162337662337663,33.1439393939394,11.363636363636363,16.098484848484848,12.31060606060606,30.70887445887446,12.31060606060606 4 | 2020/8/3,21.645021645021647,17.992424242424242,16.63961038961039,20.02164502164502,14.544753086419753,13.122294372294373,10.146103896103895,14.339826839826841,24.350649350649352,10.551948051948052,20.698051948051948,13.663419913419911 5 | 2020/8/4,18.804112554112557,12.445887445887447,12.037037037037036,12.31060606060606,10.416666666666666,8.371913580246913,10.956790123456791,14.339826839826841,16.975308641975307,20.42748917748918,24.62121212121212,33.685064935064936 6 | 2020/8/5,28.95021645021645,15.151515151515152,15.70216049382716,17.992424242424242,19.886363636363637,20.02164502164502,22.569444444444443,12.175324675324676,16.098484848484848,13.663419913419911,34.496753246753244,24.485930735930737 7 | 2020/8/6,23.674242424242426,17.58658008658009,15.54783950617284,22.186147186147185,21.75925925925926,26.10930735930736,25.11574074074074,27.462121212121215,61.0462962962963,48.02489177489177,19.753086419753085,34.09090909090909 8 | 2020/8/7,35.44372294372294,34.36147186147186,31.114718614718615,36.66125541125541,45.31926406926407,48.566017316017316,23.919753086419753,11.265432098765432,42.47835497835498,34.496753246753244,24.074074074074073,38.41991341991342 9 | 2020/8/8,37.878787878787875,37.06709956709957,32.467532467532465,34.09090909090909,42.20779220779221,51.21604938271605,34.226190476190474,7.291666666666667,13.933982683982684,14.88095238095238,24.421296296296298,34.226190476190474 10 | 2020/8/9,32.467532467532465,28.814935064935064,25.974025974025974,28.138528138528137,38.41991341991342,36.12012987012987,30.844155844155843,14.429012345679013,21.103896103896105,23.403679653679653,16.319444444444443,24.891774891774894 11 | 2020/8/10,42.74891774891775,42.74891774891775,41.66666666666667,39.63744588744589,34.9025974025974,34.9025974025974,31.25,12.345679012345679,15.046296296296296,24.215367965367964,22.260802469135804,26.785714285714285 12 | 2020/8/11,29.76190476190476,25.83874458874459,19.345238095238095,18.804112554112557,17.47685185185185,14.544753086419753,15.856481481481481,16.087962962962962,18.209876543209877,20.968614718614717,39.5021645021645,26.244588744588746 13 | 2020/8/12,33.41450216450216,28.40909090909091,21.374458874458874,18.939393939393938,16.435185185185187,14.930555555555555,19.345238095238095,9.604978354978355,21.720679012345677,19.345238095238095,25.162337662337663,30.032467532467532 14 | 2020/8/13,24.62121212121212,19.75108225108225,16.36904761904762,15.422077922077921,19.521604938271604,18.939393939393938,23.133116883116884,9.1991341991342,13.001543209876543,15.286796536796535,42.07251082251082,33.54978354978355 15 | 2020/8/14,23.26839826839827,19.074675324675326,14.00462962962963,17.4512987012987,17.316017316017316,20.156926406926406,23.944805194805195,10.01082251082251,12.152777777777779,10.822510822510823,35.03787878787879,17.18073593073593 16 | 2020/8/15,29.085497835497836,24.756493506493506,19.074675324675326,24.215367965367964,18.939393939393938,22.862554112554115,23.944805194805195,14.61038961038961,20.698051948051948,23.809523809523807,36.39069264069264,26.92099567099567 17 | 2020/8/16,30.844155844155843,27.326839826839823,23.26839826839827,28.003246753246753,22.321428571428573,33.82034632034632,35.849567099567096,57.589506172839506,45.048701298701296,46.13095238095238,36.66125541125541,34.36147186147186 18 | 2020/8/17,53.592592592592595,29.22077922077922,27.006172839506174,47.34848484848485,25.192901234567902,43.560606060606055,54.0246913580247,16.63961038961039,33.41450216450216,21.645021645021647,32.467532467532465,6.764069264069264 19 | 2020/8/18,60.29012345679012,29.320987654320987,29.66820987654321,61.26234567901234,27.700617283950617,58.77777777777778,62.23456790123457,6.790123456790123,12.808641975308642,14.583333333333334,33.82034632034632,4.74537037037037 20 | 2020/8/19,57.04938271604938,28.279320987654323,22.878086419753085,55.21296296296296,24.074074074074073,29.76190476190476,35.44372294372294,55.861111111111114,46.13095238095238,53.70061728395062,63.74691358024692,44.1017316017316 21 | 2020/8/20,85.89197530864197,38.61882716049383,35.648148148148145,63.63888888888889,26.041666666666668,38.41991341991342,46.26623376623377,63.42283950617284,69.47222222222223,37.191358024691354,80.16666666666667,29.085497835497836 22 | 2020/8/21,75.52160493827161,35.68672839506173,38.348765432098766,69.58024691358025,46.942640692640694,59.75,59.641975308641975,25.703463203463205,25.83874458874459,18.094135802469136,44.23701298701299,11.381172839506172 23 | 2020/8/22,17.72186147186147,38.01406926406926,51.432098765432094,49.51298701298701,60.50617283950618,54.456790123456784,35.44372294372294,26.515151515151512,8.757716049382717,7.330246913580247,16.91017316017316,7.677469135802468 24 | 2020/8/23,26.650432900432904,16.63961038961039,20.42748917748918,20.833333333333336,22.727272727272727,22.321428571428573,15.963203463203463,17.4512987012987,18.325617283950617,7.677469135802468,24.756493506493506,9.413580246913579 25 | 2020/8/24,34.36147186147186,29.491341991341994,30.844155844155843,26.515151515151512,25.432900432900432,25.162337662337663,12.581168831168831,12.987012987012987,20.02164502164502,18.595679012345677,41.531385281385276,19.09722222222222 26 | 2020/8/25,38.01406926406926,29.626623376623375,35.30844155844156,30.979437229437227,27.597402597402596,33.00865800865801,31.926406926406926,14.745670995670997,22.862554112554115,27.597402597402596,26.10930735930736,40.04329004329004 27 | 2020/8/26,34.63203463203463,24.08008658008658,23.944805194805195,24.485930735930737,21.374458874458874,18.939393939393938,18.66883116883117,12.987012987012987,29.085497835497836,36.39069264069264,31.655844155844157,33.82034632034632 28 | 2020/8/27,10.84104938271605,14.204545454545455,17.18073593073593,15.422077922077921,10.570987654320987,8.252164502164502,21.23917748917749,24.215367965367964,28.54437229437229,23.809523809523807,27.73268398268398,25.568181818181817 29 | 2020/8/28,14.699074074074074,22.456709956709958,20.833333333333336,17.992424242424242,20.42748917748918,16.233766233766232,25.568181818181817,21.103896103896105,26.37987012987013,16.319444444444443,32.467532467532465,25.703463203463205 30 | 2020/8/29,19.984567901234566,33.685064935064936,38.5551948051948,44.1017316017316,34.226190476190474,19.615800865800868,23.809523809523807,18.939393939393938,23.538961038961038,25.703463203463205,48.566017316017316,25.027056277056275 31 | 2020/8/30,15.93364197530864,32.332251082251084,53.916666666666664,47.88961038961039,44.642857142857146,25.703463203463205,29.626623376623375,15.557359307359308,13.663419913419911,17.4512987012987,36.93181818181818,14.745670995670997 32 | 2020/8/31,14.043209876543209,25.297619047619047,46.53679653679654,42.61363636363636,41.66666666666667,35.714285714285715,30.032467532467532,19.886363636363637,21.374458874458874,23.674242424242426,42.34307359307359,30.167748917748916 33 | -------------------------------------------------------------------------------- /space_train/space_7.csv: -------------------------------------------------------------------------------- 1 | MonitorDate,ID_24,ID_26,ID_28,ID_33,ID_37,ID_42,ID_53,ID_61,ID_63,ID_65,ID_68,ID_70 2 | 2020/7/1,18.66883116883117,14.88095238095238,14.197530864197532,17.399691358024693,13.933982683982684,13.734567901234568,14.930555555555555,18.3982683982684,23.26839826839827,29.897186147186147,20.156926406926406,27.73268398268398 3 | 2020/7/2,26.650432900432904,20.562770562770563,15.046296296296296,15.200617283950619,14.339826839826841,13.040123456790123,21.374458874458874,19.886363636363637,20.562770562770563,21.915584415584416,24.350649350649352,25.432900432900432 4 | 2020/7/3,27.597402597402596,21.103896103896105,16.504329004329005,15.354938271604937,18.533549783549784,16.473765432098766,20.42748917748918,10.957792207792208,18.788580246913583,17.4512987012987,25.162337662337663,32.87337662337662 5 | 2020/7/4,30.70887445887446,23.26839826839827,32.061688311688314,17.72186147186147,25.162337662337663,16.242283950617285,23.403679653679653,12.31060606060606,16.78240740740741,30.303030303030305,35.44372294372294,35.44372294372294 6 | 2020/7/5,37.60822510822511,30.032467532467532,30.979437229437227,25.974025974025974,24.891774891774894,20.698051948051948,28.679653679653683,8.252164502164502,15.856481481481481,30.844155844155843,32.73809523809524,31.79112554112554 7 | 2020/7/6,27.73268398268398,23.674242424242426,22.862554112554115,24.485930735930737,20.698051948051948,17.857142857142858,22.456709956709958,12.445887445887447,18.51851851851852,28.679653679653683,30.70887445887446,37.878787878787875 8 | 2020/7/7,16.36904761904762,18.26298701298701,15.692640692640692,21.103896103896105,14.969135802469136,12.581168831168831,12.268518518518519,11.093073593073592,21.23917748917749,29.085497835497836,20.156926406926406,34.09090909090909 9 | 2020/7/8,21.103896103896105,14.88095238095238,14.853395061728396,17.316017316017316,15.084876543209878,12.61574074074074,15.557359307359308,10.687229437229437,23.133116883116884,28.54437229437229,24.350649350649352,27.597402597402596 10 | 2020/7/9,23.674242424242426,22.862554112554115,14.351851851851851,15.016233766233766,20.949074074074073,12.229938271604938,17.857142857142858,10.551948051948052,24.08008658008658,28.138528138528137,23.538961038961038,27.056277056277057 11 | 2020/7/10,23.26839826839827,18.939393939393938,15.470679012345679,19.615800865800868,17.554012345679013,14.506172839506172,17.18073593073593,13.798701298701298,28.138528138528137,34.36147186147186,24.350649350649352,31.655844155844157 12 | 2020/7/11,30.57359307359307,22.997835497835496,23.538961038961038,21.374458874458874,18.127705627705627,15.046296296296296,16.63961038961039,12.04004329004329,33.54978354978355,33.82034632034632,29.897186147186147,33.1439393939394 13 | 2020/7/12,29.491341991341994,22.727272727272727,20.698051948051948,22.456709956709958,23.538961038961038,13.663419913419911,19.345238095238095,21.915584415584416,26.37987012987013,26.785714285714285,35.44372294372294,30.303030303030305 14 | 2020/7/13,34.496753246753244,33.27922077922078,30.844155844155843,28.54437229437229,27.191558441558442,15.557359307359308,19.886363636363637,16.504329004329005,20.562770562770563,21.103896103896105,36.93181818181818,39.5021645021645 15 | 2020/7/14,38.01406926406926,35.714285714285715,34.76731601731602,29.491341991341994,25.027056277056275,17.992424242424242,22.727272727272727,11.363636363636363,12.851731601731602,21.23917748917749,52.2962962962963,32.73809523809524 16 | 2020/7/15,39.77272727272727,32.87337662337662,25.432900432900432,28.40909090909091,23.133116883116884,15.393518518518519,15.692640692640692,11.363636363636363,15.963203463203463,23.403679653679653,47.21320346320346,41.66666666666667 17 | 2020/7/16,20.968614718614717,17.045454545454547,11.228354978354979,18.533549783549784,17.316017316017316,10.378086419753087,17.992424242424242,12.04004329004329,26.10930735930736,26.515151515151512,20.02164502164502,26.37987012987013 18 | 2020/7/17,17.857142857142858,13.257575757575756,12.581168831168831,14.88095238095238,13.657407407407408,11.226851851851851,15.286796536796535,7.981601731601732,21.645021645021647,23.944805194805195,19.615800865800868,21.50974025974026 19 | 2020/7/18,22.321428571428573,17.045454545454547,21.103896103896105,17.18073593073593,13.122294372294373,9.876543209876543,13.618827160493828,15.151515151515152,24.215367965367964,25.974025974025974,22.456709956709958,18.939393939393938 20 | 2020/7/19,30.844155844155843,26.92099567099567,19.75108225108225,22.0508658008658,16.63961038961039,12.962962962962964,23.403679653679653,9.063852813852813,20.156926406926406,28.40909090909091,35.03787878787879,35.849567099567096 21 | 2020/7/20,31.79112554112554,24.485930735930737,15.963203463203463,18.66883116883117,13.773148148148149,13.425925925925926,16.319444444444443,8.793290043290044,16.63961038961039,21.23917748917749,32.196969696969695,28.40909090909091 22 | 2020/7/21,27.326839826839823,17.045454545454547,17.72186147186147,14.745670995670997,18.804112554112557,13.233024691358024,24.350649350649352,8.252164502164502,15.016233766233766,16.098484848484848,25.703463203463205,30.70887445887446 23 | 2020/7/22,20.156926406926406,19.345238095238095,18.3982683982684,21.780303030303028,29.356060606060606,20.02164502164502,27.326839826839823,9.875541125541124,12.31060606060606,15.151515151515152,27.462121212121215,35.17316017316018 24 | 2020/7/23,30.303030303030305,30.57359307359307,37.47294372294372,29.897186147186147,29.897186147186147,19.20995670995671,41.125541125541126,7.575757575757576,11.769480519480519,20.156926406926406,38.01406926406926,29.22077922077922 25 | 2020/7/24,23.674242424242426,22.727272727272727,19.48051948051948,17.857142857142858,15.66358024691358,14.969135802469136,22.456709956709958,8.928571428571429,10.918209876543209,19.886363636363637,27.326839826839823,30.43831168831169 26 | 2020/7/25,24.08008658008658,23.26839826839827,23.809523809523807,17.045454545454547,19.521604938271604,14.351851851851851,13.001543209876543,9.74025974025974,16.098484848484848,22.0508658008658,28.40909090909091,23.809523809523807 27 | 2020/7/26,24.891774891774894,20.698051948051948,16.36904761904762,15.422077922077921,16.78240740740741,13.348765432098764,20.02164502164502,7.169913419913421,14.745670995670997,26.244588744588746,27.73268398268398,25.162337662337663 28 | 2020/7/27,26.10930735930736,17.045454545454547,16.504329004329005,12.716450216450216,14.204545454545455,13.233024691358024,12.716450216450216,9.604978354978355,12.268518518518519,19.75108225108225,26.10930735930736,23.674242424242426 29 | 2020/7/28,24.62121212121212,22.591991341991342,22.0508658008658,11.634199134199134,15.8179012345679,11.998456790123457,15.557359307359308,10.01082251082251,11.921296296296296,13.503086419753087,31.25,15.692640692640692 30 | 2020/7/29,36.52597402597402,26.10930735930736,22.997835497835496,23.674242424242426,25.297619047619047,16.435185185185187,27.326839826839823,10.416666666666668,11.265432098765432,11.072530864197532,27.326839826839823,9.25925925925926 31 | 2020/7/30,38.82575757575758,41.66666666666667,60.39814814814815,52.2962962962963,28.003246753246753,21.6820987654321,43.96645021645021,11.228354978354979,17.316017316017316,11.921296296296296,20.968614718614717,6.764069264069264 32 | 2020/7/31,83.83950617283952,79.73456790123457,55.75308641975308,60.50617283950618,46.672077922077925,27.083333333333332,70.33641975308642,10.416666666666668,14.467592592592593,16.975308641975307,47.61904761904761,6.222943722943723 33 | -------------------------------------------------------------------------------- /improved_PSO_train_NN.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Fri Jan 8 10:47:08 2021 4 | 5 | @author: ray 6 | """ 7 | import time 8 | import random 9 | import matplotlib.pyplot as plt 10 | import pandas as pd 11 | import numpy as np 12 | from sklearn.model_selection import train_test_split 13 | np.seterr(divide='ignore', invalid='ignore') 14 | 15 | 16 | input_data = pd.read_csv('./space_train/train_space_AQI_2.csv') 17 | 18 | shape_num = input_data.shape 19 | X_row = input_data.iloc[:, :shape_num[1]-1] 20 | Y_row = input_data.iloc[:, shape_num[1]-1] 21 | 22 | train_x, val_test_x, train_y, val_test_y = train_test_split(X_row, Y_row, test_size = 0.3, shuffle = True) 23 | val_x, test_x, val_y, test_y = train_test_split(val_test_x, val_test_y, test_size = 0.5, shuffle = True) 24 | 25 | def relu(x): 26 | if x < 0: return 0 27 | else: return x 28 | 29 | def sigmoid(x): 30 | return 1. / (1 + np.exp(-x)) 31 | 32 | def tanh(x): 33 | return (np.exp(x) - np.exp(-x)) / (np.exp(x) + np.exp(-x)) 34 | 35 | def plot_fit(val_output, val_y, epoch_num): 36 | 37 | plt.figure(figsize=(8.8,4)) 38 | plt.plot(val_y) 39 | plt.plot(val_output) 40 | 41 | plt.title('Predict Result of epoch:' + str(epoch_num)) 42 | plt.ylabel('value') 43 | plt.xlabel('number') 44 | plt.legend(['val_y', 'val_output'], loc='best') 45 | 46 | plt.show() 47 | 48 | def NN(X, train_x, train_y, input_kernel, hid_kernel, output_kernel, epoch_num): 49 | fit_w = X[:input_kernel*hid_kernel] 50 | fit_wbias = X[input_kernel*hid_kernel: ((input_kernel*hid_kernel)+hid_kernel)] 51 | fit_v = X[((input_kernel*hid_kernel)+hid_kernel): (((input_kernel*hid_kernel)+hid_kernel)+hid_kernel)] 52 | fit_vbias = X[(((input_kernel*hid_kernel)+hid_kernel)+hid_kernel): ((((input_kernel*hid_kernel)+hid_kernel)+hid_kernel)+output_kernel)] 53 | 54 | data_result = np.zeros(train_x.shape[0]) 55 | 56 | for input_num in range(train_x.shape[0]): 57 | input_x = np.zeros(input_kernel) 58 | for input_for_hid_num in range(hid_kernel): 59 | if(input_for_hid_num == 0): 60 | input_x = train_x.iloc[input_num].T 61 | else: 62 | input_x = np.hstack([input_x, train_x.iloc[input_num].T]) 63 | 64 | hid_temp = fit_w * input_x 65 | hid_result = np.zeros(hid_kernel) 66 | for hid_num in range(hid_kernel): 67 | hid_result[hid_num] = relu(np.sum(hid_temp[hid_num * input_kernel : (hid_num * input_kernel) + input_kernel]) + fit_wbias[hid_num]) 68 | 69 | 70 | output_temp = fit_v * hid_result 71 | data_result[input_num] = np.sum(output_temp + fit_vbias) 72 | 73 | val_y = np.zeros(train_y.shape) 74 | val_y[:] = train_y[:] 75 | plot_fit(data_result, val_y, epoch_num) 76 | 77 | 78 | def fitfunction(X, train_x, train_y, input_kernel, hid_kernel, output_kernel): 79 | 80 | ################ calculate NN structure ####################### 81 | fit_w = X[:input_kernel*hid_kernel] 82 | fit_wbias = X[input_kernel*hid_kernel: ((input_kernel*hid_kernel)+hid_kernel)] 83 | fit_v = X[((input_kernel*hid_kernel)+hid_kernel): (((input_kernel*hid_kernel)+hid_kernel)+hid_kernel)] 84 | fit_vbias = X[(((input_kernel*hid_kernel)+hid_kernel)+hid_kernel): ((((input_kernel*hid_kernel)+hid_kernel)+hid_kernel)+output_kernel)] 85 | 86 | data_result = np.zeros(train_x.shape[0]) 87 | 88 | for input_num in range(train_x.shape[0]): 89 | input_x = np.zeros(input_kernel) 90 | for input_for_hid_num in range(hid_kernel): 91 | if(input_for_hid_num == 0): 92 | input_x = train_x.iloc[input_num].T 93 | else: 94 | input_x = np.hstack([input_x, train_x.iloc[input_num].T]) 95 | 96 | hid_temp = fit_w * input_x 97 | hid_result = np.zeros(hid_kernel) 98 | for hid_num in range(hid_kernel): 99 | hid_result[hid_num] = relu(np.sum(hid_temp[hid_num*input_kernel : (hid_num*input_kernel) + input_kernel]) + fit_wbias[hid_num]) 100 | 101 | 102 | output_temp = fit_v * hid_result 103 | data_result[input_num] = np.sum(output_temp + fit_vbias) 104 | 105 | ############## calculate fittness ###################### 106 | val_y = np.zeros(train_y.shape) 107 | val_y[:] = train_y[:] 108 | 109 | 110 | fittness = np.mean(np.abs(val_y-data_result.flatten())/val_y) 111 | 112 | return fittness 113 | 114 | 115 | 116 | # PSO 參數 117 | wmin = 0.02 118 | wmax = 1 #20 119 | c1min = 0.05 120 | c1max = 1.2 # 500 121 | c2min = 0.05 122 | c2max = 1.2 #500 123 | 124 | 125 | input_layer_kernel = shape_num[1]-1 # number of input layer kernel 126 | hidden_layer_kernel = 6 # number of hidden layer kernel 127 | output_layer_kernel = 1 # number of output layer kernel 128 | 129 | 130 | dim = input_layer_kernel*hidden_layer_kernel + hidden_layer_kernel + hidden_layer_kernel*output_layer_kernel + output_layer_kernel #維度 131 | p = dim * 3 #粒子數量 132 | iteration = 30 #迭代次數 133 | X = np.zeros((p, dim)) #粒子位置 134 | V = np.zeros((p, dim)) #粒子速度 135 | pbest = np.zeros((p, dim, iteration+1)) #個體最佳解 136 | gbest = np.zeros(dim) #群體最佳解 137 | pbest_fit = np.zeros((p, iteration+1)) #個體最佳適應值 138 | gbest_fit = 10**12 #群體最佳適應值 139 | 140 | #初始化群體 141 | def init_Population(p, dim, X, V, pbest_fit, gbest_fit, gbest, pbest, input_num, hidden_num, output_num): 142 | 143 | for i in range(p): 144 | for j in range(dim): 145 | V[i,j] = random.uniform(-0.85, 0.85) 146 | X[i,j] = random.uniform(-0.85, 0.85) 147 | 148 | pbest[i, :, 0] = X[i, :] 149 | # print('particle num: '+str(i)) 150 | pbest_fit[i, 0] = fitfunction(X[i, :], train_x, train_y, input_num, hidden_num, output_num) 151 | # print(pbest_fit) 152 | if(pbest_fit[i, 0] < gbest_fit): 153 | gbest_fit = pbest_fit[i, 0] 154 | gbest = pbest[i, :, 0] 155 | print('update gbest, gbest: ', gbest_fit) 156 | 157 | return p, dim, X, V, pbest_fit, gbest_fit, gbest, pbest 158 | 159 | 160 | def iterator(wmax, wmin, c1max, c1min, c2max, c2min, p, dim, iteration, X, V, pbest, gbest, pbest_fit, gbest_fit, input_num, hidden_num, output_num): 161 | 162 | particle_bound = 2 163 | 164 | fitness = np.zeros(iteration+1) 165 | fitness[0]= gbest_fit 166 | for tt in range(iteration): 167 | t_start = time.time() 168 | 169 | 170 | 171 | w = wmin + (iteration-tt)/iteration*(wmax-wmin) 172 | c1 = c1min + (iteration-tt)/iteration*(c1max-c1min) 173 | c2 = c2max + (iteration-tt)/iteration*(c2min-c2max) 174 | 175 | 176 | 177 | 178 | for i in range(p): 179 | #速度及位置更新 180 | # print('particle_num: ', i) 181 | rand1 = random.random() 182 | rand2 = random.random() 183 | if (tt != 0): 184 | V[i] = w*V[i] + c1*rand1*(pbest[i,:,tt+1] - X[i, :]) + c2*rand2*(gbest - X[i, :]) 185 | X[i, :] = X[i, :] + V[i] 186 | 187 | for col_num in range(dim): 188 | if(X[i, col_num] < -particle_bound or X[i, col_num] > particle_bound): 189 | X[i, col_num] = random.uniform(-particle_bound, particle_bound) 190 | 191 | 192 | # for i in range(p): 193 | temp = fitfunction(X[i], train_x, train_y, input_num, hidden_num, output_num) 194 | if(temp < pbest_fit[i, tt]): #更新個體最佳及個體最佳適應值 195 | if(X[i, 0] >= -particle_bound and X[i, 0] <= particle_bound): 196 | pbest[i,:,tt+1] = X[i, :] 197 | pbest_fit[i, tt+1] = fitfunction(pbest[i,:,tt+1], train_x, train_y, input_num, hidden_num, output_num) 198 | else: 199 | pbest_fit[i, tt+1] = pbest_fit[i, tt] 200 | pbest[i, :, tt+1] = pbest[i,:,tt] 201 | #### mutation ##### 202 | mutation_rate = random.uniform(0,1) 203 | if(mutation_rate < 0.05): 204 | X[i, :] = random.uniform(-0.85, 0.85) 205 | 206 | if(pbest_fit[i, tt+1] < gbest_fit): #更新群體最佳及群體最佳適應值 207 | gbest = pbest[i, :, tt+1] 208 | gbest_fit = pbest_fit[i, tt+1] 209 | 210 | 211 | 212 | 213 | 214 | fitness[tt+1] = gbest_fit 215 | NN(gbest, train_x, train_y, input_num, hidden_num, output_num, tt) 216 | t_end = time.time() 217 | duration = t_end - t_start 218 | val_error = fitfunction(gbest, val_x, val_y, input_num, hidden_num, output_num) 219 | 220 | 221 | print('epoch_num: '+ str(tt) + ', gbest: ', gbest_fit, ', cost time:', duration, 'sec ,val_test mape: ', val_error) 222 | 223 | 224 | 225 | 226 | return fitness, gbest, pbest, pbest_fit 227 | #執行 228 | t_start_all = time.time() 229 | p, dim, X, V, pbest_fit, gbest_fit, gbest, pbest = init_Population(p, dim, X, V, pbest_fit, gbest_fit, gbest, pbest, input_layer_kernel, hidden_layer_kernel, output_layer_kernel) 230 | fitness, gbest, pbest, pbest_fit = iterator(wmax, wmin, c1max, c1min, c2max, c2min, p, dim, iteration, X, V, pbest, gbest, pbest_fit, gbest_fit, input_layer_kernel, hidden_layer_kernel, output_layer_kernel) 231 | t_end_all = time.time() 232 | duration_all = t_end_all - t_start_all 233 | 234 | 235 | 236 | 237 | ############ plot PSO history ########### 238 | plt.figure(figsize = (12, 12)) 239 | plt.title("fitness") 240 | plt.xlabel("iteration") 241 | plt.ylabel("fitness") 242 | t = np.array([t for t in range(0,iteration+1)]) 243 | fitness = np.array(fitness) 244 | plt.plot(t, fitness) 245 | #plt.ylim(0, 10) 246 | #plt.yscale('log') 247 | plt.show() 248 | 249 | ########### plot test result ############### 250 | NN(gbest, val_x, val_y, input_layer_kernel, hidden_layer_kernel, output_layer_kernel, 30) 251 | error = fitfunction(gbest, val_x, val_y, input_layer_kernel, hidden_layer_kernel, output_layer_kernel) 252 | print('total time: ', duration_all) 253 | print('val_test mape: ', error) 254 | 255 | NN(gbest, test_x, test_y, input_layer_kernel, hidden_layer_kernel, output_layer_kernel, 30) 256 | error = fitfunction(gbest, test_x, test_y, input_layer_kernel, hidden_layer_kernel, output_layer_kernel) 257 | print('total time: ', duration_all) 258 | print('test mape: ', error) 259 | 260 | df_gbest = pd.DataFrame(gbest) 261 | df_gbest.to_csv('PSO_gbest.csv') 262 | 263 | -------------------------------------------------------------------------------- /time_train/only_AQI.csv: -------------------------------------------------------------------------------- 1 | AQI,AQI.1,AQI.2,AQI.3 2 | 0.146558373,0.176800844,0.24787065,28.81493506 3 | 0.176800844,0.24787065,0.26904038,25.7034632 4 | 0.24787065,0.26904038,0.234261538,83.62345679 5 | 0.26904038,0.234261538,0.881669053,77.35802469 6 | 0.234261538,0.881669053,0.811636451,47.00734049 7 | 0.881669053,0.811636451,0.472388123,42.07251082 8 | 0.811636451,0.472388123,0.417228486,41.80194805 9 | 0.472388123,0.417228486,0.414204239,54.56481481 10 | 0.417228486,0.414204239,0.556862677,32.60281385 11 | 0.414204239,0.556862677,0.311379838,48.7012987 12 | 0.556862677,0.311379838,0.491322539,54.7808642 13 | 0.311379838,0.491322539,0.559277595,43.83116883 14 | 0.491322539,0.559277595,0.436886092,41.66666667 15 | 0.559277595,0.436886092,0.412692115,15.01623377 16 | 0.436886092,0.412692115,0.114803779,51.54012346 17 | 0.412692115,0.114803779,0.523053835,58.5617284 18 | 0.114803779,0.523053835,0.601538647,57.91358025 19 | 0.523053835,0.601538647,0.594293895,73.93880837 20 | 0.601538647,0.594293895,0.77341776,89.56481481 21 | 0.594293895,0.77341776,0.948079278,65.04320988 22 | 0.77341776,0.948079278,0.673986166,84.27160494 23 | 0.948079278,0.673986166,0.888913805,24.08008658 24 | 0.673986166,0.888913805,0.216116056,15.28679654 25 | 0.888913805,0.216116056,0.117828026,13.83399209 26 | 0.216116056,0.117828026,0.101589134,24.08008658 27 | 0.117828026,0.101589134,0.216116056,32.1969697 28 | 0.101589134,0.216116056,0.306843468,80.6969697 29 | 0.216116056,0.306843468,0.8489579,91.07246377 30 | 0.306843468,0.8489579,0.964931201,49.6482684 31 | 0.8489579,0.964931201,0.501907404,30.97943723 32 | 0.964931201,0.501907404,0.293234356,33.31451158 33 | 0.501907404,0.293234356,0.319334923,33.68506494 34 | 0.293234356,0.319334923,0.323476827,33.14393939 35 | 0.319334923,0.323476827,0.317428333,29.22077922 36 | 0.323476827,0.317428333,0.27357675,24.48593074 37 | 0.317428333,0.27357675,0.220652426,34.9025974 38 | 0.27357675,0.220652426,0.337085939,53.26851852 39 | 0.220652426,0.337085939,0.542373174,57.04938272 40 | 0.337085939,0.542373174,0.584634226,63.20679012 41 | 0.542373174,0.584634226,0.653459369,76.70987654 42 | 0.584634226,0.653459369,0.8043917,55.21296296 43 | 0.653459369,0.8043917,0.564107429,58.60869565 44 | 0.8043917,0.564107429,0.602063629,42.88419913 45 | 0.564107429,0.602063629,0.426301227,22.18614719 46 | 0.602063629,0.426301227,0.194946326,45.18398268 47 | 0.426301227,0.194946326,0.452007327,34.44381705 48 | 0.194946326,0.452007327,0.331957867,29.35606061 49 | 0.452007327,0.331957867,0.275088874,33.00865801 50 | 0.331957867,0.275088874,0.315916209,58.23765432 51 | 0.275088874,0.315916209,0.597916271,76.49382716 52 | 0.315916209,0.597916271,0.801976782,63.79388084 53 | 0.597916271,0.801976782,0.660021644,36.66125541 54 | 0.801976782,0.660021644,0.356743545,72.38888889 55 | 0.660021644,0.356743545,0.756093354,60.18209877 56 | 0.356743545,0.756093354,0.619650527,38.66587957 57 | 0.756093354,0.619650527,0.379150466,70.12037037 58 | 0.619650527,0.379150466,0.730736722,62.2345679 59 | 0.379150466,0.730736722,0.642592241,54.45679012 60 | 0.730736722,0.642592241,0.555655219,29.22077922 61 | 0.642592241,0.555655219,0.27357675,37.26708075 62 | 0.555655219,0.27357675,0.363515228,23.26839827 63 | 0.27357675,0.363515228,0.207043315,43.42532468 64 | 0.363515228,0.207043315,0.432349721,33.82034632 65 | 0.207043315,0.432349721,0.32498895,67.41975309 66 | 0.432349721,0.32498895,0.700550256,29.22077922 67 | 0.32498895,0.700550256,0.27357675,74.33333333 68 | 0.700550256,0.27357675,0.777827609,29.50310559 69 | 0.27357675,0.777827609,0.276732486,60.39814815 70 | 0.777827609,0.276732486,0.622065444,52.40432099 71 | 0.276732486,0.622065444,0.532713505,36.84359119 72 | 0.622065444,0.532713505,0.358781624,46.80735931 73 | 0.532713505,0.358781624,0.47015281,55.32098765 74 | 0.358781624,0.47015281,0.565314888,47.754329 75 | 0.47015281,0.565314888,0.480737674,68.39197531 76 | 0.565314888,0.480737674,0.711417384,94.20987654 77 | 0.480737674,0.711417384,1,85.35185185 78 | 0.711417384,1,0.900988391,74.72785829 79 | 1,0.900988391,0.782237458,73.14506173 80 | 0.900988391,0.782237458,0.764545564,76.49382716 81 | 0.782237458,0.764545564,0.801976782,62.77469136 82 | 0.764545564,0.801976782,0.648629534,39.77272727 83 | 0.801976782,0.648629534,0.391522386,65.48470209 84 | 0.648629534,0.391522386,0.678920997,61.72390572 85 | 0.391522386,0.678920997,0.636884255,70.55246914 86 | 0.678920997,0.636884255,0.735566557,17.31601732 87 | 0.636884255,0.735566557,0.140509879,21.91558442 88 | 0.735566557,0.140509879,0.191922079,32.60281385 89 | 0.140509879,0.191922079,0.311379838,23.57425184 90 | 0.191922079,0.311379838,0.210462029,23.29192547 91 | 0.311379838,0.210462029,0.207306293,26.6504329 92 | 0.210462029,0.207306293,0.244846403,45.45454545 93 | 0.207306293,0.244846403,0.455031574,43.29004329 94 | 0.244846403,0.455031574,0.430837598,52.2962963 95 | 0.455031574,0.430837598,0.531506046,34.22619048 96 | 0.430837598,0.531506046,0.329525321,30.3030303 97 | 0.531506046,0.329525321,0.285673738,36.25541126 98 | 0.329525321,0.285673738,0.352207174,48.0177717 99 | 0.285673738,0.352207174,0.483682336,39.80801807 100 | 0.352207174,0.483682336,0.391916853,61.91049383 101 | 0.483682336,0.391916853,0.638969865,45.18398268 102 | 0.391916853,0.638969865,0.452007327,72.69887279 103 | 0.638969865,0.452007327,0.759558235,74.33333333 104 | 0.452007327,0.759558235,0.777827609,83.08333333 105 | 0.759558235,0.777827609,0.87563176,68.07729469 106 | 0.777827609,0.87563176,0.707900004,69.25617284 107 | 0.87563176,0.707900004,0.721077053,71.41666667 108 | 0.707900004,0.721077053,0.745226226,72.92901235 109 | 0.721077053,0.745226226,0.762130647,55.25925926 110 | 0.745226226,0.762130647,0.564624912,30.16774892 111 | 0.762130647,0.564624912,0.284161615,10.01082251 112 | 0.564624912,0.284161615,0.058855208,40.17857143 113 | 0.284161615,0.058855208,0.396058756,29.78543196 114 | 0.058855208,0.396058756,0.279888222,30.84415584 115 | 0.396058756,0.279888222,0.291722233,41.53138528 116 | 0.279888222,0.291722233,0.411179992,26.6798419 117 | 0.291722233,0.411179992,0.245175125,40.71969697 118 | 0.411179992,0.245175125,0.402107251,51.86419753 119 | 0.245175125,0.402107251,0.526676211,64.50308642 120 | 0.402107251,0.526676211,0.667948873,77.57407407 121 | 0.526676211,0.667948873,0.814051369,74.7654321 122 | 0.667948873,0.814051369,0.782657444,55.42901235 123 | 0.814051369,0.782657444,0.566522347,54.02469136 124 | 0.782657444,0.566522347,0.550825384,71.84876543 125 | 0.566522347,0.550825384,0.750056061,39.36688312 126 | 0.550825384,0.750056061,0.386986015,38.69047619 127 | 0.750056061,0.386986015,0.379425398,38.39638622 128 | 0.386986015,0.379425398,0.376138172,35.44372294 129 | 0.379425398,0.376138172,0.343134433,45.58982684 130 | 0.376138172,0.343134433,0.456543698,44.46640316 131 | 0.343134433,0.456543698,0.443986498,48.02489177 132 | 0.456543698,0.443986498,0.483761921,80.92283951 133 | 0.443986498,0.483761921,0.851482587,70.76851852 134 | 0.483761921,0.851482587,0.737981474,71.00805153 135 | 0.851482587,0.737981474,0.740658882,45.31926407 136 | 0.737981474,0.740658882,0.453519451,22.32142857 137 | 0.740658882,0.453519451,0.19645845,29.78543196 138 | 0.453519451,0.19645845,0.279888222,40.71969697 139 | 0.19645845,0.279888222,0.402107251,35.8495671 140 | 0.279888222,0.402107251,0.347670803,17.78656126 141 | 0.402107251,0.347670803,0.145769439,15.96320346 142 | 0.347670803,0.145769439,0.125388644,15.28679654 143 | 0.145769439,0.125388644,0.117828026,23.26839827 144 | 0.125388644,0.117828026,0.207043315,35.44372294 145 | 0.117828026,0.207043315,0.343134433,30.43831169 146 | 0.207043315,0.343134433,0.287185862,16.23376623 147 | 0.343134433,0.287185862,0.128412891,14.31523022 148 | 0.287185862,0.128412891,0.10696823,29.07961604 149 | 0.128412891,0.10696823,0.271998882,36.39069264 150 | 0.10696823,0.271998882,0.353719297,24.21536797 151 | 0.271998882,0.353719297,0.217628179,27.05627706 152 | 0.353719297,0.217628179,0.249382774,36.84359119 153 | 0.217628179,0.249382774,0.358781624,29.50310559 154 | 0.249382774,0.358781624,0.276732486,33.54978355 155 | 0.358781624,0.276732486,0.321964703,36.7965368 156 | 0.276732486,0.321964703,0.358255668,26.24458874 157 | 0.321964703,0.358255668,0.240310032,24.48593074 158 | 0.358255668,0.240310032,0.220652426,22.18614719 159 | 0.240310032,0.220652426,0.194946326,23.0095991 160 | 0.220652426,0.194946326,0.204150557,33.54978355 161 | 0.194946326,0.204150557,0.321964703,50.05411255 162 | 0.204150557,0.321964703,0.506443774,45.72510823 163 | 0.321964703,0.506443774,0.458055821,41.26082251 164 | 0.506443774,0.458055821,0.408155745,41.12554113 165 | 0.458055821,0.408155745,0.406643621,20.56277056 166 | 0.408155745,0.406643621,0.176800844,25.83874459 167 | 0.406643621,0.176800844,0.235773662,31.92640693 168 | 0.176800844,0.235773662,0.303819221,30.43831169 169 | 0.235773662,0.303819221,0.287185862,33.45567476 170 | 0.303819221,0.287185862,0.320912791,32.06168831 171 | 0.287185862,0.320912791,0.305331344,34.86730661 172 | 0.320912791,0.305331344,0.336691472,26.10930736 173 | 0.305331344,0.336691472,0.238797909,28.93845285 174 | 0.336691472,0.238797909,0.270421014,31.65584416 175 | 0.238797909,0.270421014,0.300794974,32.46753247 176 | 0.270421014,0.300794974,0.309867715,28.54437229 177 | 0.300794974,0.309867715,0.266016132,33.14393939 178 | 0.309867715,0.266016132,0.317428333,28.40909091 179 | 0.266016132,0.317428333,0.264504009,32.74985884 180 | 0.317428333,0.264504009,0.313023451,32.02479339 181 | 0.264504009,0.313023451,0.304918947,27.73268398 182 | 0.313023451,0.304918947,0.256943391,25.43290043 183 | 0.304918947,0.256943391,0.231237291,32.87337662 184 | 0.256943391,0.231237291,0.314404086,35.44372294 185 | 0.231237291,0.314404086,0.343134433,33.17334839 186 | 0.314404086,0.343134433,0.317757055,37.87878788 187 | 0.343134433,0.317757055,0.370352656,34.09090909 188 | 0.317757055,0.370352656,0.328013197,27.5974026 189 | 0.370352656,0.328013197,0.255431268,27.05627706 190 | 0.328013197,0.255431268,0.249382774,31.65584416 191 | 0.255431268,0.249382774,0.300794974,33.14393939 192 | 0.249382774,0.300794974,0.317428333,30.3030303 193 | 0.300794974,0.317428333,0.285673738,39.5021645 194 | 0.317428333,0.285673738,0.388498139,34.16149068 195 | 0.285673738,0.388498139,0.328802131,41.66666667 196 | 0.388498139,0.328802131,0.412692115,26.37987013 197 | 0.328802131,0.412692115,0.241822156,21.50974026 198 | 0.412692115,0.241822156,0.187385709,18.93939394 199 | 0.241822156,0.187385709,0.158655362,35.8495671 200 | 0.187385709,0.158655362,0.347670803,28.40909091 201 | 0.158655362,0.347670803,0.264504009,30.70887446 202 | 0.347670803,0.264504009,0.290210109,35.17316017 203 | 0.264504009,0.290210109,0.340110186,31.8772137 204 | 0.290210109,0.340110186,0.303269358,30.43831169 205 | 0.340110186,0.303269358,0.287185862,23.80952381 206 | 0.303269358,0.287185862,0.213091809,25.16233766 207 | 0.287185862,0.213091809,0.228213044,24.70355731 208 | 0.213091809,0.228213044,0.223084973,19.82228298 209 | 0.228213044,0.223084973,0.168523957,9.259259259 210 | 0.223084973,0.168523957,0.050454522,6.764069264 211 | 0.168523957,0.050454522,0.022564243,6.222943723 212 | 0.050454522,0.022564243,0.016515749,7.407407407 213 | 0.022564243,0.016515749,0.029755231,12.31060606 214 | 0.016515749,0.029755231,0.084561308,14.25748165 215 | 0.029755231,0.084561308,0.106322738,33.68506494 216 | 0.084561308,0.106322738,0.323476827,24.48593074 217 | 0.106322738,0.323476827,0.220652426,34.09090909 218 | 0.323476827,0.220652426,0.328013197,38.41991342 219 | 0.220652426,0.328013197,0.37640115,34.22619048 220 | 0.328013197,0.37640115,0.329525321,24.89177489 221 | 0.37640115,0.329525321,0.225188797,33.83458647 222 | 0.329525321,0.225188797,0.325148121,26.24458874 223 | 0.225188797,0.325148121,0.240310032,30.03246753 224 | 0.325148121,0.240310032,0.282649491,33.54978355 225 | 0.240310032,0.282649491,0.321964703,17.18073593 226 | 0.282649491,0.321964703,0.138997756,26.92099567 227 | 0.321964703,0.138997756,0.24787065,34.36147186 228 | 0.138997756,0.24787065,0.331037444,6.764069264 229 | 0.24787065,0.331037444,0.022564243,4.74537037 230 | 0.331037444,0.022564243,0,44.1017316 231 | 0.022564243,0,0.439910339,66.55555556 232 | 0,0.439910339,0.690890587,66.55555556 233 | 0.439910339,0.690890587,0.690890587,66.55555556 234 | 0.690890587,0.690890587,0.690890587,66.55555556 235 | 0.690890587,0.690890587,0.690890587,38.23953824 236 | 0.690890587,0.690890587,0.374384986,40.04329004 237 | 0.690890587,0.374384986,0.394546633,33.82034632 238 | 0.374384986,0.394546633,0.32498895,25.56818182 239 | 0.394546633,0.32498895,0.232749415,25.7034632 240 | 0.32498895,0.232749415,0.234261538,25.02705628 241 | 0.232749415,0.234261538,0.226700921,14.745671 242 | 0.234261538,0.226700921,0.111779532,31.47939018 243 | 0.226700921,0.111779532,0.298822639,49.78354978 244 | 0.111779532,0.298822639,0.503419527,58.02160494 245 | 0.298822639,0.503419527,0.595501354,52.83641975 246 | 0.503419527,0.595501354,0.537543339,49.78354978 247 | 0.595501354,0.537543339,0.503419527,51.32407407 248 | 0.537543339,0.503419527,0.520638918,57.37345679 249 | 0.503419527,0.520638918,0.588256602,63.25589226 250 | 0.520638918,0.588256602,0.654008214,80.34343434 251 | 0.588256602,0.654008214,0.845006218,67.38047138 252 | 0.654008214,0.845006218,0.70011118,63.96296296 253 | 0.845006218,0.70011118,0.66191158,57.2654321 254 | 0.70011118,0.66191158,0.587049144,37.74350649 255 | 0.66191158,0.587049144,0.368840533,28.24074074 256 | 0.587049144,0.368840533,0.262622255,28.24074074 257 | 0.368840533,0.262622255,0.262622255,35.17316017 258 | 0.262622255,0.262622255,0.340110186,43.96645022 259 | 0.262622255,0.340110186,0.438398215,48.43073593 260 | 0.340110186,0.438398215,0.488298292,46.53679654 261 | 0.438398215,0.488298292,0.467128563,29.08549784 262 | 0.488298292,0.467128563,0.272064627,21.50974026 263 | 0.467128563,0.272064627,0.187385709,34.36147186 264 | 0.272064627,0.187385709,0.331037444,32.91027155 265 | 0.187385709,0.331037444,0.314816483,31.38528139 266 | 0.331037444,0.314816483,0.297770727,20.42748918 267 | 0.314816483,0.297770727,0.17528872,45.31926407 268 | 0.297770727,0.17528872,0.453519451,33.68506494 269 | 0.17528872,0.453519451,0.323476827,18.66883117 270 | 0.453519451,0.323476827,0.155631114,16.23376623 271 | 0.323476827,0.155631114,0.128412891,26.51515152 272 | 0.155631114,0.128412891,0.243334279,35.29079616 273 | 0.128412891,0.243334279,0.341425076,43.1547619 274 | 0.243334279,0.341425076,0.429325474,44.1017316 275 | 0.341425076,0.429325474,0.439910339,24.35064935 276 | 0.429325474,0.439910339,0.219140303,26.10930736 277 | 0.439910339,0.219140303,0.238797909,36.56126482 278 | 0.219140303,0.238797909,0.355625888,35.8495671 279 | 0.238797909,0.355625888,0.347670803,33.41450216 280 | 0.355625888,0.347670803,0.32045258,40.31385281 281 | 0.347670803,0.32045258,0.39757088,36.39069264 282 | 0.32045258,0.39757088,0.353719297,32.73809524 283 | 0.39757088,0.353719297,0.312891962,16.504329 284 | 0.353719297,0.312891962,0.131437138,14.61038961 285 | 0.312891962,0.131437138,0.110267408,26.24458874 286 | 0.131437138,0.110267408,0.240310032,40.04329004 287 | 0.110267408,0.240310032,0.394546633,39.40377804 288 | 0.240310032,0.394546633,0.387398413,42.74891775 289 | 0.394546633,0.387398413,0.424789104,31.52056277 290 | 0.387398413,0.424789104,0.29928285,38.96103896 291 | 0.424789104,0.29928285,0.382449645,43.96645022 292 | 0.29928285,0.382449645,0.438398215,43.05477132 293 | 0.382449645,0.438398215,0.428207818,20.96861472 294 | 0.438398215,0.428207818,0.181337215,19.3452381 295 | 0.428207818,0.181337215,0.163191732,66.98765432 296 | 0.181337215,0.163191732,0.695720422,45.0487013 297 | 0.163191732,0.695720422,0.450495204,22.72727273 298 | 0.695720422,0.450495204,0.20099482,26.24458874 299 | 0.450495204,0.20099482,0.240310032,37.33766234 300 | 0.20099482,0.240310032,0.364304162,47.754329 301 | 0.240310032,0.364304162,0.480737674,42.91360813 302 | 0.364304162,0.480737674,0.42662995,46.26623377 303 | 0.480737674,0.42662995,0.464104315,35.03787879 304 | 0.42662995,0.464104315,0.338598062,35.03787879 305 | 0.464104315,0.338598062,0.338598062,35.71428571 306 | 0.338598062,0.338598062,0.34615868,84.16358025 307 | 0.338598062,0.34615868,0.887706346,40.85497835 308 | 0.34615868,0.887706346,0.403619374,30.49124788 309 | 0.887706346,0.403619374,0.287777562,13.52813853 310 | 0.403619374,0.287777562,0.09817042,30.97943723 311 | 0.287777562,0.09817042,0.293234356,44.50757576 312 | 0.09817042,0.293234356,0.44444671,51.75617284 313 | 0.293234356,0.44444671,0.525468753,28.79728967 314 | 0.44444671,0.525468753,0.268843146,36.52597403 315 | 0.525468753,0.268843146,0.355231421,38.41991342 316 | 0.268843146,0.355231421,0.37640115,37.06709957 317 | 0.355231421,0.37640115,0.361279915,34.09090909 318 | 0.37640115,0.361279915,0.328013197,32.06168831 319 | 0.361279915,0.328013197,0.305331344,21.91558442 320 | 0.328013197,0.305331344,0.191922079,23.53896104 321 | 0.305331344,0.191922079,0.210067562,33.41450216 322 | 0.191922079,0.210067562,0.32045258,42.63128176 323 | 0.210067562,0.32045258,0.423474214,42.74891775 324 | 0.32045258,0.423474214,0.424789104,30.3030303 325 | 0.423474214,0.424789104,0.285673738,29.35606061 326 | 0.424789104,0.285673738,0.275088874,23.99774139 327 | 0.285673738,0.275088874,0.215195633,35.71428571 328 | 0.275088874,0.215195633,0.34615868,26.24458874 329 | 0.215195633,0.34615868,0.240310032,32.1969697 330 | 0.34615868,0.240310032,0.306843468,39.23160173 331 | 0.240310032,0.306843468,0.385473892,22.45670996 332 | 0.306843468,0.385473892,0.197970573,22.0508658 333 | 0.385473892,0.197970573,0.193434203,26.51515152 334 | 0.197970573,0.193434203,0.243334279,34.58498024 335 | 0.193434203,0.243334279,0.333535735,30.03246753 336 | 0.243334279,0.333535735,0.282649491,27.32683983 337 | 0.333535735,0.282649491,0.252407021,22.86255411 338 | 0.282649491,0.252407021,0.202506944,25.43290043 339 | 0.252407021,0.202506944,0.231237291,15.10446076 340 | 0.202506944,0.231237291,0.115789947,14.20454545 341 | 0.231237291,0.115789947,0.105731038,13.7987013 342 | 0.115789947,0.105731038,0.101194667,15.69264069 343 | 0.105731038,0.101194667,0.122364397,19.3452381 344 | 0.101194667,0.122364397,0.163191732,17.64539808 345 | 0.122364397,0.163191732,0.144191571,72.49691358 346 | 0.163191732,0.144191571,0.757300812,78.76234568 347 | 0.144191571,0.757300812,0.827333414,28.27380952 348 | 0.757300812,0.827333414,0.262991885,19.19819311 349 | 0.827333414,0.262991885,0.16154812,18.12770563 350 | 0.262991885,0.16154812,0.14958262,19.3452381 351 | 0.16154812,0.14958262,0.163191732,25.56818182 352 | 0.14958262,0.163191732,0.232749415,24.48593074 353 | 0.163191732,0.232749415,0.220652426,22.18614719 354 | 0.232749415,0.220652426,0.194946326,23.15076228 355 | 0.220652426,0.194946326,0.205728425,29.62662338 356 | 0.194946326,0.205728425,0.278113121,43.01948052 357 | 0.205728425,0.278113121,0.427813351,72.06481481 358 | 0.278113121,0.427813351,0.752470978,58.99382716 359 | 0.427813351,0.752470978,0.606368482,41.80194805 360 | 0.752470978,0.606368482,0.414204239,49.24242424 361 | 0.606368482,0.414204239,0.497371033,54.09983897 362 | 0.414204239,0.497371033,0.551665355,62.77469136 363 | 0.497371033,0.551665355,0.648629534,55.10493827 364 | 0.551665355,0.648629534,0.562899971,57.14331723 365 | -------------------------------------------------------------------------------- /time_train/train_3day_onlyAQI.csv: -------------------------------------------------------------------------------- 1 | AQI,AQI.1,AQI.2,AQI.3 2 | 17.85714286,20.56277056,26.92099567,28.81493506 3 | 20.56277056,26.92099567,28.81493506,25.7034632 4 | 26.92099567,28.81493506,25.7034632,83.62345679 5 | 28.81493506,25.7034632,83.62345679,77.35802469 6 | 25.7034632,83.62345679,77.35802469,47.00734049 7 | 83.62345679,77.35802469,47.00734049,42.07251082 8 | 77.35802469,47.00734049,42.07251082,41.80194805 9 | 47.00734049,42.07251082,41.80194805,54.56481481 10 | 42.07251082,41.80194805,54.56481481,32.60281385 11 | 41.80194805,54.56481481,32.60281385,48.7012987 12 | 54.56481481,32.60281385,48.7012987,54.7808642 13 | 32.60281385,48.7012987,54.7808642,43.83116883 14 | 48.7012987,54.7808642,43.83116883,41.66666667 15 | 54.7808642,43.83116883,41.66666667,15.01623377 16 | 43.83116883,41.66666667,15.01623377,51.54012346 17 | 41.66666667,15.01623377,51.54012346,58.5617284 18 | 15.01623377,51.54012346,58.5617284,57.91358025 19 | 51.54012346,58.5617284,57.91358025,73.93880837 20 | 58.5617284,57.91358025,73.93880837,89.56481481 21 | 57.91358025,73.93880837,89.56481481,65.04320988 22 | 73.93880837,89.56481481,65.04320988,84.27160494 23 | 89.56481481,65.04320988,84.27160494,24.08008658 24 | 65.04320988,84.27160494,24.08008658,15.28679654 25 | 84.27160494,24.08008658,15.28679654,13.83399209 26 | 24.08008658,15.28679654,13.83399209,24.08008658 27 | 15.28679654,13.83399209,24.08008658,32.1969697 28 | 13.83399209,24.08008658,32.1969697,80.6969697 29 | 24.08008658,32.1969697,80.6969697,91.07246377 30 | 32.1969697,80.6969697,91.07246377,49.6482684 31 | 80.6969697,91.07246377,49.6482684,30.97943723 32 | 91.07246377,49.6482684,30.97943723,33.31451158 33 | 49.6482684,30.97943723,33.31451158,33.68506494 34 | 30.97943723,33.31451158,33.68506494,33.14393939 35 | 33.31451158,33.68506494,33.14393939,29.22077922 36 | 33.68506494,33.14393939,29.22077922,24.48593074 37 | 33.14393939,29.22077922,24.48593074,34.9025974 38 | 29.22077922,24.48593074,34.9025974,53.26851852 39 | 24.48593074,34.9025974,53.26851852,57.04938272 40 | 34.9025974,53.26851852,57.04938272,63.20679012 41 | 53.26851852,57.04938272,63.20679012,76.70987654 42 | 57.04938272,63.20679012,76.70987654,55.21296296 43 | 63.20679012,76.70987654,55.21296296,58.60869565 44 | 76.70987654,55.21296296,58.60869565,42.88419913 45 | 55.21296296,58.60869565,42.88419913,22.18614719 46 | 58.60869565,42.88419913,22.18614719,45.18398268 47 | 42.88419913,22.18614719,45.18398268,34.44381705 48 | 22.18614719,45.18398268,34.44381705,29.35606061 49 | 45.18398268,34.44381705,29.35606061,33.00865801 50 | 34.44381705,29.35606061,33.00865801,58.23765432 51 | 29.35606061,33.00865801,58.23765432,76.49382716 52 | 33.00865801,58.23765432,76.49382716,63.79388084 53 | 58.23765432,76.49382716,63.79388084,36.66125541 54 | 76.49382716,63.79388084,36.66125541,72.38888889 55 | 63.79388084,36.66125541,72.38888889,60.18209877 56 | 36.66125541,72.38888889,60.18209877,38.66587957 57 | 72.38888889,60.18209877,38.66587957,70.12037037 58 | 60.18209877,38.66587957,70.12037037,62.2345679 59 | 38.66587957,70.12037037,62.2345679,54.45679012 60 | 70.12037037,62.2345679,54.45679012,29.22077922 61 | 62.2345679,54.45679012,29.22077922,37.26708075 62 | 54.45679012,29.22077922,37.26708075,23.26839827 63 | 29.22077922,37.26708075,23.26839827,43.42532468 64 | 37.26708075,23.26839827,43.42532468,33.82034632 65 | 23.26839827,43.42532468,33.82034632,67.41975309 66 | 43.42532468,33.82034632,67.41975309,29.22077922 67 | 33.82034632,67.41975309,29.22077922,74.33333333 68 | 67.41975309,29.22077922,74.33333333,29.50310559 69 | 29.22077922,74.33333333,29.50310559,60.39814815 70 | 74.33333333,29.50310559,60.39814815,52.40432099 71 | 29.50310559,60.39814815,52.40432099,36.84359119 72 | 60.39814815,52.40432099,36.84359119,46.80735931 73 | 52.40432099,36.84359119,46.80735931,55.32098765 74 | 36.84359119,46.80735931,55.32098765,47.754329 75 | 46.80735931,55.32098765,47.754329,68.39197531 76 | 55.32098765,47.754329,68.39197531,94.20987654 77 | 47.754329,68.39197531,94.20987654,85.35185185 78 | 68.39197531,94.20987654,85.35185185,74.72785829 79 | 94.20987654,85.35185185,74.72785829,73.14506173 80 | 85.35185185,74.72785829,73.14506173,76.49382716 81 | 74.72785829,73.14506173,76.49382716,62.77469136 82 | 73.14506173,76.49382716,62.77469136,39.77272727 83 | 76.49382716,62.77469136,39.77272727,65.48470209 84 | 62.77469136,39.77272727,65.48470209,61.72390572 85 | 39.77272727,65.48470209,61.72390572,70.55246914 86 | 65.48470209,61.72390572,70.55246914,17.31601732 87 | 61.72390572,70.55246914,17.31601732,21.91558442 88 | 70.55246914,17.31601732,21.91558442,32.60281385 89 | 17.31601732,21.91558442,32.60281385,23.57425184 90 | 21.91558442,32.60281385,23.57425184,23.29192547 91 | 32.60281385,23.57425184,23.29192547,26.6504329 92 | 23.57425184,23.29192547,26.6504329,45.45454545 93 | 23.29192547,26.6504329,45.45454545,43.29004329 94 | 26.6504329,45.45454545,43.29004329,52.2962963 95 | 45.45454545,43.29004329,52.2962963,34.22619048 96 | 43.29004329,52.2962963,34.22619048,30.3030303 97 | 52.2962963,34.22619048,30.3030303,36.25541126 98 | 34.22619048,30.3030303,36.25541126,48.0177717 99 | 30.3030303,36.25541126,48.0177717,39.80801807 100 | 36.25541126,48.0177717,39.80801807,61.91049383 101 | 48.0177717,39.80801807,61.91049383,45.18398268 102 | 39.80801807,61.91049383,45.18398268,72.69887279 103 | 61.91049383,45.18398268,72.69887279,74.33333333 104 | 45.18398268,72.69887279,74.33333333,83.08333333 105 | 72.69887279,74.33333333,83.08333333,68.07729469 106 | 74.33333333,83.08333333,68.07729469,69.25617284 107 | 83.08333333,68.07729469,69.25617284,71.41666667 108 | 68.07729469,69.25617284,71.41666667,72.92901235 109 | 69.25617284,71.41666667,72.92901235,55.25925926 110 | 71.41666667,72.92901235,55.25925926,30.16774892 111 | 72.92901235,55.25925926,30.16774892,10.01082251 112 | 55.25925926,30.16774892,10.01082251,40.17857143 113 | 30.16774892,10.01082251,40.17857143,29.78543196 114 | 10.01082251,40.17857143,29.78543196,30.84415584 115 | 40.17857143,29.78543196,30.84415584,41.53138528 116 | 29.78543196,30.84415584,41.53138528,26.6798419 117 | 30.84415584,41.53138528,26.6798419,40.71969697 118 | 41.53138528,26.6798419,40.71969697,51.86419753 119 | 26.6798419,40.71969697,51.86419753,64.50308642 120 | 40.71969697,51.86419753,64.50308642,77.57407407 121 | 51.86419753,64.50308642,77.57407407,74.7654321 122 | 64.50308642,77.57407407,74.7654321,55.42901235 123 | 77.57407407,74.7654321,55.42901235,54.02469136 124 | 74.7654321,55.42901235,54.02469136,71.84876543 125 | 55.42901235,54.02469136,71.84876543,39.36688312 126 | 54.02469136,71.84876543,39.36688312,38.69047619 127 | 71.84876543,39.36688312,38.69047619,38.39638622 128 | 39.36688312,38.69047619,38.39638622,35.44372294 129 | 38.69047619,38.39638622,35.44372294,45.58982684 130 | 38.39638622,35.44372294,45.58982684,44.46640316 131 | 35.44372294,45.58982684,44.46640316,48.02489177 132 | 45.58982684,44.46640316,48.02489177,80.92283951 133 | 44.46640316,48.02489177,80.92283951,70.76851852 134 | 48.02489177,80.92283951,70.76851852,71.00805153 135 | 80.92283951,70.76851852,71.00805153,45.31926407 136 | 70.76851852,71.00805153,45.31926407,22.32142857 137 | 71.00805153,45.31926407,22.32142857,29.78543196 138 | 45.31926407,22.32142857,29.78543196,40.71969697 139 | 22.32142857,29.78543196,40.71969697,35.8495671 140 | 29.78543196,40.71969697,35.8495671,17.78656126 141 | 40.71969697,35.8495671,17.78656126,15.96320346 142 | 35.8495671,17.78656126,15.96320346,15.28679654 143 | 17.78656126,15.96320346,15.28679654,23.26839827 144 | 15.96320346,15.28679654,23.26839827,35.44372294 145 | 15.28679654,23.26839827,35.44372294,30.43831169 146 | 23.26839827,35.44372294,30.43831169,16.23376623 147 | 35.44372294,30.43831169,16.23376623,14.31523022 148 | 30.43831169,16.23376623,14.31523022,29.07961604 149 | 16.23376623,14.31523022,29.07961604,36.39069264 150 | 14.31523022,29.07961604,36.39069264,24.21536797 151 | 29.07961604,36.39069264,24.21536797,27.05627706 152 | 36.39069264,24.21536797,27.05627706,36.84359119 153 | 24.21536797,27.05627706,36.84359119,29.50310559 154 | 27.05627706,36.84359119,29.50310559,33.54978355 155 | 36.84359119,29.50310559,33.54978355,36.7965368 156 | 29.50310559,33.54978355,36.7965368,26.24458874 157 | 33.54978355,36.7965368,26.24458874,24.48593074 158 | 36.7965368,26.24458874,24.48593074,22.18614719 159 | 26.24458874,24.48593074,22.18614719,23.0095991 160 | 24.48593074,22.18614719,23.0095991,33.54978355 161 | 22.18614719,23.0095991,33.54978355,50.05411255 162 | 23.0095991,33.54978355,50.05411255,45.72510823 163 | 33.54978355,50.05411255,45.72510823,41.26082251 164 | 50.05411255,45.72510823,41.26082251,41.12554113 165 | 45.72510823,41.26082251,41.12554113,20.56277056 166 | 41.26082251,41.12554113,20.56277056,25.83874459 167 | 41.12554113,20.56277056,25.83874459,31.92640693 168 | 20.56277056,25.83874459,31.92640693,30.43831169 169 | 25.83874459,31.92640693,30.43831169,33.45567476 170 | 31.92640693,30.43831169,33.45567476,32.06168831 171 | 30.43831169,33.45567476,32.06168831,34.86730661 172 | 33.45567476,32.06168831,34.86730661,26.10930736 173 | 32.06168831,34.86730661,26.10930736,28.93845285 174 | 34.86730661,26.10930736,28.93845285,31.65584416 175 | 26.10930736,28.93845285,31.65584416,32.46753247 176 | 28.93845285,31.65584416,32.46753247,28.54437229 177 | 31.65584416,32.46753247,28.54437229,33.14393939 178 | 32.46753247,28.54437229,33.14393939,28.40909091 179 | 28.54437229,33.14393939,28.40909091,32.74985884 180 | 33.14393939,28.40909091,32.74985884,32.02479339 181 | 28.40909091,32.74985884,32.02479339,27.73268398 182 | 32.74985884,32.02479339,27.73268398,25.43290043 183 | 32.02479339,27.73268398,25.43290043,32.87337662 184 | 27.73268398,25.43290043,32.87337662,35.44372294 185 | 25.43290043,32.87337662,35.44372294,33.17334839 186 | 32.87337662,35.44372294,33.17334839,37.87878788 187 | 35.44372294,33.17334839,37.87878788,34.09090909 188 | 33.17334839,37.87878788,34.09090909,27.5974026 189 | 37.87878788,34.09090909,27.5974026,27.05627706 190 | 34.09090909,27.5974026,27.05627706,31.65584416 191 | 27.5974026,27.05627706,31.65584416,33.14393939 192 | 27.05627706,31.65584416,33.14393939,30.3030303 193 | 31.65584416,33.14393939,30.3030303,39.5021645 194 | 33.14393939,30.3030303,39.5021645,34.16149068 195 | 30.3030303,39.5021645,34.16149068,41.66666667 196 | 39.5021645,34.16149068,41.66666667,26.37987013 197 | 34.16149068,41.66666667,26.37987013,21.50974026 198 | 41.66666667,26.37987013,21.50974026,18.93939394 199 | 26.37987013,21.50974026,18.93939394,35.8495671 200 | 21.50974026,18.93939394,35.8495671,28.40909091 201 | 18.93939394,35.8495671,28.40909091,30.70887446 202 | 35.8495671,28.40909091,30.70887446,35.17316017 203 | 28.40909091,30.70887446,35.17316017,31.8772137 204 | 30.70887446,35.17316017,31.8772137,30.43831169 205 | 35.17316017,31.8772137,30.43831169,23.80952381 206 | 31.8772137,30.43831169,23.80952381,25.16233766 207 | 30.43831169,23.80952381,25.16233766,24.70355731 208 | 23.80952381,25.16233766,24.70355731,19.82228298 209 | 25.16233766,24.70355731,19.82228298,9.259259259 210 | 24.70355731,19.82228298,9.259259259,6.764069264 211 | 19.82228298,9.259259259,6.764069264,6.222943723 212 | 9.259259259,6.764069264,6.222943723,7.407407407 213 | 6.764069264,6.222943723,7.407407407,12.31060606 214 | 6.222943723,7.407407407,12.31060606,14.25748165 215 | 7.407407407,12.31060606,14.25748165,33.68506494 216 | 12.31060606,14.25748165,33.68506494,24.48593074 217 | 14.25748165,33.68506494,24.48593074,34.09090909 218 | 33.68506494,24.48593074,34.09090909,38.41991342 219 | 24.48593074,34.09090909,38.41991342,34.22619048 220 | 34.09090909,38.41991342,34.22619048,24.89177489 221 | 38.41991342,34.22619048,24.89177489,33.83458647 222 | 34.22619048,24.89177489,33.83458647,26.24458874 223 | 24.89177489,33.83458647,26.24458874,30.03246753 224 | 33.83458647,26.24458874,30.03246753,33.54978355 225 | 26.24458874,30.03246753,33.54978355,17.18073593 226 | 30.03246753,33.54978355,17.18073593,26.92099567 227 | 33.54978355,17.18073593,26.92099567,34.36147186 228 | 17.18073593,26.92099567,34.36147186,6.764069264 229 | 26.92099567,34.36147186,6.764069264,4.74537037 230 | 34.36147186,6.764069264,4.74537037,44.1017316 231 | 6.764069264,4.74537037,44.1017316,66.55555556 232 | 4.74537037,44.1017316,66.55555556,66.55555556 233 | 44.1017316,66.55555556,66.55555556,66.55555556 234 | 66.55555556,66.55555556,66.55555556,66.55555556 235 | 66.55555556,66.55555556,66.55555556,38.23953824 236 | 66.55555556,66.55555556,38.23953824,40.04329004 237 | 66.55555556,38.23953824,40.04329004,33.82034632 238 | 38.23953824,40.04329004,33.82034632,25.56818182 239 | 40.04329004,33.82034632,25.56818182,25.7034632 240 | 33.82034632,25.56818182,25.7034632,25.02705628 241 | 25.56818182,25.7034632,25.02705628,14.745671 242 | 25.7034632,25.02705628,14.745671,31.47939018 243 | 25.02705628,14.745671,31.47939018,49.78354978 244 | 14.745671,31.47939018,49.78354978,58.02160494 245 | 31.47939018,49.78354978,58.02160494,52.83641975 246 | 49.78354978,58.02160494,52.83641975,49.78354978 247 | 58.02160494,52.83641975,49.78354978,51.32407407 248 | 52.83641975,49.78354978,51.32407407,57.37345679 249 | 49.78354978,51.32407407,57.37345679,63.25589226 250 | 51.32407407,57.37345679,63.25589226,80.34343434 251 | 57.37345679,63.25589226,80.34343434,67.38047138 252 | 63.25589226,80.34343434,67.38047138,63.96296296 253 | 80.34343434,67.38047138,63.96296296,57.2654321 254 | 67.38047138,63.96296296,57.2654321,37.74350649 255 | 63.96296296,57.2654321,37.74350649,28.24074074 256 | 57.2654321,37.74350649,28.24074074,28.24074074 257 | 37.74350649,28.24074074,28.24074074,35.17316017 258 | 28.24074074,28.24074074,35.17316017,43.96645022 259 | 28.24074074,35.17316017,43.96645022,48.43073593 260 | 35.17316017,43.96645022,48.43073593,46.53679654 261 | 43.96645022,48.43073593,46.53679654,29.08549784 262 | 48.43073593,46.53679654,29.08549784,21.50974026 263 | 46.53679654,29.08549784,21.50974026,34.36147186 264 | 29.08549784,21.50974026,34.36147186,32.91027155 265 | 21.50974026,34.36147186,32.91027155,31.38528139 266 | 34.36147186,32.91027155,31.38528139,20.42748918 267 | 32.91027155,31.38528139,20.42748918,45.31926407 268 | 31.38528139,20.42748918,45.31926407,33.68506494 269 | 20.42748918,45.31926407,33.68506494,18.66883117 270 | 45.31926407,33.68506494,18.66883117,16.23376623 271 | 33.68506494,18.66883117,16.23376623,26.51515152 272 | 18.66883117,16.23376623,26.51515152,35.29079616 273 | 16.23376623,26.51515152,35.29079616,43.1547619 274 | 26.51515152,35.29079616,43.1547619,44.1017316 275 | 35.29079616,43.1547619,44.1017316,24.35064935 276 | 43.1547619,44.1017316,24.35064935,26.10930736 277 | 44.1017316,24.35064935,26.10930736,36.56126482 278 | 24.35064935,26.10930736,36.56126482,35.8495671 279 | 26.10930736,36.56126482,35.8495671,33.41450216 280 | 36.56126482,35.8495671,33.41450216,40.31385281 281 | 35.8495671,33.41450216,40.31385281,36.39069264 282 | 33.41450216,40.31385281,36.39069264,32.73809524 283 | 40.31385281,36.39069264,32.73809524,16.504329 284 | 36.39069264,32.73809524,16.504329,14.61038961 285 | 32.73809524,16.504329,14.61038961,26.24458874 286 | 16.504329,14.61038961,26.24458874,40.04329004 287 | 14.61038961,26.24458874,40.04329004,39.40377804 288 | 26.24458874,40.04329004,39.40377804,42.74891775 289 | 40.04329004,39.40377804,42.74891775,31.52056277 290 | 39.40377804,42.74891775,31.52056277,38.96103896 291 | 42.74891775,31.52056277,38.96103896,43.96645022 292 | 31.52056277,38.96103896,43.96645022,43.05477132 293 | 38.96103896,43.96645022,43.05477132,20.96861472 294 | 43.96645022,43.05477132,20.96861472,19.3452381 295 | 43.05477132,20.96861472,19.3452381,66.98765432 296 | 20.96861472,19.3452381,66.98765432,45.0487013 297 | 19.3452381,66.98765432,45.0487013,22.72727273 298 | 66.98765432,45.0487013,22.72727273,26.24458874 299 | 45.0487013,22.72727273,26.24458874,37.33766234 300 | 22.72727273,26.24458874,37.33766234,47.754329 301 | 26.24458874,37.33766234,47.754329,42.91360813 302 | 37.33766234,47.754329,42.91360813,46.26623377 303 | 47.754329,42.91360813,46.26623377,35.03787879 304 | 42.91360813,46.26623377,35.03787879,35.03787879 305 | 46.26623377,35.03787879,35.03787879,35.71428571 306 | 35.03787879,35.03787879,35.71428571,84.16358025 307 | 35.03787879,35.71428571,84.16358025,40.85497835 308 | 35.71428571,84.16358025,40.85497835,30.49124788 309 | 84.16358025,40.85497835,30.49124788,13.52813853 310 | 40.85497835,30.49124788,13.52813853,30.97943723 311 | 30.49124788,13.52813853,30.97943723,44.50757576 312 | 13.52813853,30.97943723,44.50757576,51.75617284 313 | 30.97943723,44.50757576,51.75617284,28.79728967 314 | 44.50757576,51.75617284,28.79728967,36.52597403 315 | 51.75617284,28.79728967,36.52597403,38.41991342 316 | 28.79728967,36.52597403,38.41991342,37.06709957 317 | 36.52597403,38.41991342,37.06709957,34.09090909 318 | 38.41991342,37.06709957,34.09090909,32.06168831 319 | 37.06709957,34.09090909,32.06168831,21.91558442 320 | 34.09090909,32.06168831,21.91558442,23.53896104 321 | 32.06168831,21.91558442,23.53896104,33.41450216 322 | 21.91558442,23.53896104,33.41450216,42.63128176 323 | 23.53896104,33.41450216,42.63128176,42.74891775 324 | 33.41450216,42.63128176,42.74891775,30.3030303 325 | 42.63128176,42.74891775,30.3030303,29.35606061 326 | 42.74891775,30.3030303,29.35606061,23.99774139 327 | 30.3030303,29.35606061,23.99774139,35.71428571 328 | 29.35606061,23.99774139,35.71428571,26.24458874 329 | 23.99774139,35.71428571,26.24458874,32.1969697 330 | 35.71428571,26.24458874,32.1969697,39.23160173 331 | 26.24458874,32.1969697,39.23160173,22.45670996 332 | 32.1969697,39.23160173,22.45670996,22.0508658 333 | 39.23160173,22.45670996,22.0508658,26.51515152 334 | 22.45670996,22.0508658,26.51515152,34.58498024 335 | 22.0508658,26.51515152,34.58498024,30.03246753 336 | 26.51515152,34.58498024,30.03246753,27.32683983 337 | 34.58498024,30.03246753,27.32683983,22.86255411 338 | 30.03246753,27.32683983,22.86255411,25.43290043 339 | 27.32683983,22.86255411,25.43290043,15.10446076 340 | 22.86255411,25.43290043,15.10446076,14.20454545 341 | 25.43290043,15.10446076,14.20454545,13.7987013 342 | 15.10446076,14.20454545,13.7987013,15.69264069 343 | 14.20454545,13.7987013,15.69264069,19.3452381 344 | 13.7987013,15.69264069,19.3452381,17.64539808 345 | 15.69264069,19.3452381,17.64539808,72.49691358 346 | 19.3452381,17.64539808,72.49691358,78.76234568 347 | 17.64539808,72.49691358,78.76234568,28.27380952 348 | 72.49691358,78.76234568,28.27380952,19.19819311 349 | 78.76234568,28.27380952,19.19819311,18.12770563 350 | 28.27380952,19.19819311,18.12770563,19.3452381 351 | 19.19819311,18.12770563,19.3452381,25.56818182 352 | 18.12770563,19.3452381,25.56818182,24.48593074 353 | 19.3452381,25.56818182,24.48593074,22.18614719 354 | 25.56818182,24.48593074,22.18614719,23.15076228 355 | 24.48593074,22.18614719,23.15076228,29.62662338 356 | 22.18614719,23.15076228,29.62662338,43.01948052 357 | 23.15076228,29.62662338,43.01948052,72.06481481 358 | 29.62662338,43.01948052,72.06481481,58.99382716 359 | 43.01948052,72.06481481,58.99382716,41.80194805 360 | 72.06481481,58.99382716,41.80194805,49.24242424 361 | 58.99382716,41.80194805,49.24242424,54.09983897 362 | 41.80194805,49.24242424,54.09983897,62.77469136 363 | 49.24242424,54.09983897,62.77469136,55.10493827 364 | 54.09983897,62.77469136,55.10493827,57.14331723 365 | -------------------------------------------------------------------------------- /time_train/origin_train_only6AQI_2.csv: -------------------------------------------------------------------------------- 1 | CO,PM10,PM25,SO2,AQI 2 | 0.359166667,14.75,5.5,0.804166667,17.85714286 3 | 0.489583333,17.45833333,6.333333333,0.382608696,20.56277056 4 | 0.732916667,15.41666667,8.291666667,0.891666667,26.92099567 5 | 0.630416667,16.625,8.875,1.370833333,28.81493506 6 | 0.3875,13.08333333,7.916666667,1.454166667,25.7034632 7 | 1.425652174,46.16666667,28.08333333,2.065217391,83.62345679 8 | 1.292916667,39.5,25.66666667,2.591666667,77.35802469 9 | 0.696818182,30.52173913,14.47826087,1.154545455,47.00734049 10 | 0.627083333,31.20833333,12.95833333,1.383333333,42.07251082 11 | 0.870833333,29,12.875,2.3875,41.80194805 12 | 0.90875,30.375,16.875,1.55,54.56481481 13 | 0.54375,19.41666667,10.04166667,1.379166667,32.60281385 14 | 0.555,29.77272727,15,2.2125,48.7012987 15 | 0.764583333,32.58333333,16.95833333,1.479166667,54.7808642 16 | 0.67625,23.625,13.5,1.658333333,43.83116883 17 | 1.084166667,27.08333333,12.83333333,2.091666667,41.66666667 18 | 0.77625,11.79166667,4.625,1.225,15.01623377 19 | 0.57,31.25,15.70833333,1.9375,51.54012346 20 | 0.772083333,30.08333333,18.41666667,0.441666667,58.5617284 21 | 0.815,32.375,18.16666667,1.345833333,57.91358025 22 | 0.743181818,35.7826087,24.34782609,1.186363636,73.93880837 23 | 1.642083333,46.66666667,30.375,3.470833333,89.56481481 24 | 1.134166667,32.58333333,20.91666667,4.757142857,65.04320988 25 | 0.78625,45.125,28.33333333,1.770833333,84.27160494 26 | 0.49125,12.25,7.416666667,1.583333333,24.08008658 27 | 0.367916667,6.416666667,4.708333333,2.195833333,15.28679654 28 | 0.408333333,10.2173913,4.260869565,1.243478261,13.83399209 29 | 0.425,12.20833333,7.416666667,2.1875,24.08008658 30 | 0.69875,15.79166667,9.916666667,2.395833333,32.1969697 31 | 0.899583333,29.66666667,26.95454545,2.083333333,80.6969697 32 | 0.66,38.33333333,30.95652174,0.6,91.07246377 33 | 0.476666667,24.75,15.29166667,0.829166667,49.6482684 34 | 0.520833333,18.08333333,9.541666667,1.691666667,30.97943723 35 | 0.79,16.34782609,10.26086957,1.930434783,33.31451158 36 | 0.96875,15.66666667,10.375,1.6,33.68506494 37 | 0.5675,18.66666667,10.20833333,0.929166667,33.14393939 38 | 0.59826087,15.60869565,9,1.813043478,29.22077922 39 | 0.829130435,18.25,7.541666667,1.060869565,24.48593074 40 | 0.579166667,22.58333333,10.75,0.883333333,34.9025974 41 | 0.43875,25.375,16.375,2.133333333,53.26851852 42 | 0.430416667,31.54166667,17.83333333,1.079166667,57.04938272 43 | 1.157083333,33.04166667,20.20833333,1.729166667,63.20679012 44 | 1.492083333,39.16666667,25.41666667,2.066666667,76.70987654 45 | 0.969583333,26.82608696,17.125,1.995833333,55.21296296 46 | 0.955416667,27.86956522,18.43478261,1.604166667,58.60869565 47 | 1.042916667,20.95833333,13.20833333,1.691666667,42.88419913 48 | 0.4775,11.25,6.833333333,3.8625,22.18614719 49 | 0.50125,32.33333333,13.91666667,1.272727273,45.18398268 50 | 0.340869565,22.73913043,10.60869565,1.173913043,34.44381705 51 | 0.558333333,20.79166667,9.041666667,1.283333333,29.35606061 52 | 0.676666667,18.45833333,10.16666667,1.875,33.00865801 53 | 0.990416667,32.75,18.29166667,1.15,58.23765432 54 | 0.595,37.58333333,25.33333333,0.766666667,76.49382716 55 | 0.366666667,51,20.43478261,0.960869565,63.79388084 56 | 0.8075,19.70833333,11.29166667,0.979166667,36.66125541 57 | 1.217083333,39.04166667,23.75,2.8,72.38888889 58 | 0.81125,30.41666667,19.04166667,1.95,60.18209877 59 | 0.462083333,20.86956522,11.90909091,0.539130435,38.66587957 60 | 0.949166667,46.125,22.875,2.179166667,70.12037037 61 | 1.025,29.25,19.83333333,2.595833333,62.2345679 62 | 0.72125,23.95833333,16.83333333,0.554166667,54.45679012 63 | 0.428333333,19.83333333,9,1.4125,29.22077922 64 | 0.573043478,23.39130435,11.47826087,1.759090909,37.26708075 65 | 0.536666667,11.25,7.166666667,1.220833333,23.26839827 66 | 0.435,20.54166667,13.375,0.704166667,43.42532468 67 | 0.749166667,18.625,10.41666667,2.104166667,33.82034632 68 | 1.08625,34.875,21.83333333,1.1125,67.41975309 69 | 0.482916667,16.16666667,9,0.991666667,29.22077922 70 | 0.917916667,38.75,24.5,2.841666667,74.33333333 71 | 0.617826087,14.82608696,9.086956522,1.252173913,29.50310559 72 | 0.461666667,41.41666667,19.125,0.520833333,60.39814815 73 | 1.37875,25.08333333,16.04166667,2.4875,52.40432099 74 | 1.186521739,17.08695652,11.34782609,1.735,36.84359119 75 | 0.51625,26.75,14.41666667,1.629166667,46.80735931 76 | 0.40625,49.04166667,17.16666667,1.504166667,55.32098765 77 | 0.419583333,39.45833333,14.70833333,3.2875,47.754329 78 | 0.897916667,46.41666667,22.20833333,1.4,68.39197531 79 | 1.286666667,49.54166667,32.16666667,3.483333333,94.20987654 80 | 1.336666667,36.41666667,28.75,2.733333333,85.35185185 81 | 0.846818182,37.43478261,24.65217391,0.683333333,74.72785829 82 | 1.092916667,43,24.04166667,2.470833333,73.14506173 83 | 0.86,39.70833333,25.33333333,0.895833333,76.49382716 84 | 0.499583333,39.83333333,20.04166667,2.5375,62.77469136 85 | 0.44875,31.04166667,12.25,1.179166667,39.77272727 86 | 1.114166667,35.08695652,21.08695652,2.766666667,65.48470209 87 | 1.02047619,29.47826087,19.63636364,2.195,61.72390572 88 | 0.940416667,35.16666667,23.04166667,1.433333333,70.55246914 89 | 0.514583333,9.041666667,5.333333333,1.704166667,17.31601732 90 | 0.347083333,18.66666667,6.75,1.904166667,21.91558442 91 | 0.88,18.20833333,10.04166667,2.795652174,32.60281385 92 | 0.810952381,17.56521739,7.260869565,3.645454545,23.57425184 93 | 0.525833333,16.26086957,7.173913043,0.395454545,23.29192547 94 | 0.411666667,16.91666667,8.208333333,1.591666667,26.6504329 95 | 0.460833333,29.45833333,14,1.75,45.45454545 96 | 0.414583333,26.08333333,13.33333333,1.436363636,43.29004329 97 | 0.35125,34.95833333,16,1.933333333,52.2962963 98 | 0.43826087,26.45833333,10.54166667,1.866666667,34.22619048 99 | 0.57,16.5,9.333333333,2.120833333,30.3030303 100 | 0.560416667,26.16666667,11.16666667,2.458333333,36.25541126 101 | 0.577619048,28.75,14.78947368,1.671428571,48.0177717 102 | 0.470869565,24.5,12.26086957,1.417391304,39.80801807 103 | 0.941666667,31.33333333,19.70833333,2.995833333,61.91049383 104 | 0.683333333,26.91666667,13.91666667,1.3625,45.18398268 105 | 0.752727273,41.13636364,23.86956522,3.49047619,72.69887279 106 | 0.540869565,41.59090909,24.5,1.05,74.33333333 107 | 0.949583333,43.75,27.875,1.816666667,83.08333333 108 | 0.863636364,36.73913043,22.08695652,2.436363636,68.07729469 109 | 1.039583333,38.5,22.54166667,2.141666667,69.25617284 110 | 0.824166667,39.375,23.375,1.695833333,71.41666667 111 | 0.944166667,34.20833333,23.95833333,1.891666667,72.92901235 112 | 0.700833333,27.59090909,17.14285714,1.775,55.25925926 113 | 0.952083333,17.66666667,9.291666667,1.7375,30.16774892 114 | 0.417083333,6.666666667,3.083333333,1.266666667,10.01082251 115 | 0.390833333,17,12.375,1.058333333,40.17857143 116 | 0.389565217,14.73913043,9.173913043,1.656521739,29.78543196 117 | 0.830833333,19.29166667,9.5,1.29047619,30.84415584 118 | 0.81875,19.28571429,12.79166667,2.295833333,41.53138528 119 | 0.536956522,17.59090909,8.217391304,2.395652174,26.6798419 120 | 0.385,34.125,12.54166667,0.725,40.71969697 121 | 0.422083333,34.83333333,15.83333333,0.804166667,51.86419753 122 | 0.8325,36.75,20.70833333,1.6375,64.50308642 123 | 0.97625,42,25.75,2.004166667,77.57407407 124 | 0.9,40,24.66666667,3.6,74.7654321 125 | 0.682916667,26.91666667,17.20833333,2.125,55.42901235 126 | 1.036521739,32.54166667,16.66666667,1.908695652,54.02469136 127 | 0.7725,37.25,23.54166667,1.383333333,71.84876543 128 | 0.754583333,24.66666667,12.125,1.991666667,39.36688312 129 | 0.756666667,19.625,11.91666667,2.358333333,38.69047619 130 | 0.809166667,20.43478261,11.82608696,1.177272727,38.39638622 131 | 0.621666667,19.16666667,10.91666667,2.204166667,35.44372294 132 | 0.6075,21.13043478,14.04166667,1.495833333,45.58982684 133 | 0.582083333,18.16666667,13.69565217,2.05,44.46640316 134 | 0.5775,21.375,14.79166667,2.204166667,48.02489177 135 | 0.55375,44.2173913,27.04166667,1.379166667,80.92283951 136 | 0.850416667,34,23.125,1.1,70.76851852 137 | 1.025652174,34.65217391,23.2173913,1.190909091,71.00805153 138 | 0.697916667,23.16666667,13.95833333,2.254166667,45.31926407 139 | 0.534166667,15.125,6.875,1.608333333,22.32142857 140 | 0.775833333,17.875,9.173913043,2.891666667,29.78543196 141 | 0.842083333,21.66666667,12.54166667,0.708695652,40.71969697 142 | 0.628333333,19.125,11.04166667,0.691304348,35.8495671 143 | 0.751666667,13.17391304,5.47826087,2.443478261,17.78656126 144 | 0.96125,8.083333333,4.916666667,1.95,15.96320346 145 | 0.514166667,6.916666667,4.708333333,1.366666667,15.28679654 146 | 0.4,15.66666667,7.166666667,2.041666667,23.26839827 147 | 0.675416667,22.29166667,10.91666667,1.695833333,35.44372294 148 | 0.855217391,19.33333333,9.375,2.417391304,30.43831169 149 | 0.45875,12.54166667,5,2.529166667,16.23376623 150 | 0.624347826,7.956521739,4.409090909,2.22173913,14.31523022 151 | 1.105652174,14.91304348,8.956521739,2.234782609,29.07961604 152 | 0.89375,21.29166667,11.20833333,1.6625,36.39069264 153 | 0.555,15.66666667,7.458333333,1.770833333,24.21536797 154 | 0.839565217,16.375,8.333333333,2.139130435,27.05627706 155 | 0.991428571,21.59090909,11.34782609,1.233333333,36.84359119 156 | 0.619166667,20.08695652,9.086956522,2.591304348,29.50310559 157 | 0.599583333,22.45833333,10.33333333,1.633333333,33.54978355 158 | 0.68375,22.58333333,11.33333333,1.0625,36.7965368 159 | 0.5225,19.125,8.083333333,2.125,26.24458874 160 | 0.6625,14.58333333,7.541666667,1.733333333,24.48593074 161 | 0.828333333,16.70833333,6.833333333,0.979166667,22.18614719 162 | 0.821304348,16.04347826,7.086956522,1.77826087,23.0095991 163 | 0.803333333,19.16666667,10.33333333,2.225,33.54978355 164 | 0.93,29.70833333,15.41666667,2.4,50.05411255 165 | 0.860416667,26.91666667,14.08333333,1.05,45.72510823 166 | 0.662916667,25.5,12.70833333,2.129166667,41.26082251 167 | 0.703333333,21.625,12.66666667,1.508333333,41.12554113 168 | 0.585416667,20.20833333,6.333333333,1.179166667,20.56277056 169 | 0.533333333,17.91666667,7.958333333,1.7875,25.83874459 170 | 0.593333333,22.08333333,9.833333333,1.35,31.92640693 171 | 0.50125,19.29166667,9.375,1.6375,30.43831169 172 | 0.5875,21.56521739,10.30434783,2.186956522,33.45567476 173 | 0.603333333,20.70833333,9.875,2.5,32.06168831 174 | 0.459583333,20.39130435,10.73913043,2.3,34.86730661 175 | 0.500416667,18.875,8.041666667,2.829166667,26.10930736 176 | 0.591363636,19.52173913,8.913043478,1.018181818,28.93845285 177 | 0.647916667,21.20833333,9.75,2.170833333,31.65584416 178 | 0.452916667,21.125,10,1.754166667,32.46753247 179 | 0.454583333,17.75,8.791666667,1.679166667,28.54437229 180 | 0.479583333,20.20833333,10.20833333,2.433333333,33.14393939 181 | 0.485,16.625,8.75,9.416666667,28.40909091 182 | 0.577083333,19.04347826,10.08695652,1.477272727,32.74985884 183 | 0.59,20.68181818,9.863636364,1.163636364,32.02479339 184 | 0.674583333,21.125,8.541666667,1.408333333,27.73268398 185 | 0.674166667,18.58333333,7.833333333,2.795833333,25.43290043 186 | 0.744166667,20.20833333,10.125,1.4625,32.87337662 187 | 0.562916667,20.625,10.91666667,1.2,35.44372294 188 | 0.483636364,21.26086957,10.2173913,1.244444444,33.17334839 189 | 0.6075,23.58333333,11.66666667,2.845833333,37.87878788 190 | 0.681666667,21.58333333,10.5,1.295833333,34.09090909 191 | 0.578333333,20.33333333,8.5,1.533333333,27.5974026 192 | 0.609583333,20.08333333,8.333333333,1.229166667,27.05627706 193 | 0.64625,21.29166667,9.75,2.154545455,31.65584416 194 | 0.559166667,20.58333333,10.20833333,2.720833333,33.14393939 195 | 0.513333333,19.375,9.333333333,0.875,30.3030303 196 | 0.66625,22.70833333,12.16666667,2.595652174,39.5021645 197 | 0.5375,19.56521739,10.52173913,2.75,34.16149068 198 | 0.624166667,22.34782609,12.83333333,1.2625,41.66666667 199 | 0.53125,18.25,8.125,1.708333333,26.37987013 200 | 0.5325,15.75,6.625,2.2875,21.50974026 201 | 0.453333333,15.875,5.833333333,1.783333333,18.93939394 202 | 0.616666667,20.66666667,11.04166667,2.504166667,35.8495671 203 | 0.653043478,18.66666667,8.75,1.843478261,28.40909091 204 | 0.730833333,18.70833333,9.458333333,0.9,30.70887446 205 | 0.687916667,21.125,10.83333333,1.975,35.17316017 206 | 0.732272727,19.5,9.818181818,3.076190476,31.8772137 207 | 0.730833333,20.70833333,9.375,3.195833333,30.43831169 208 | 0.634166667,16.70833333,7.333333333,0.333333333,23.80952381 209 | 0.575416667,16.20833333,7.75,1.933333333,25.16233766 210 | 0.724166667,18.08695652,7.608695652,2.17826087,24.70355731 211 | 0.691052632,15.42105263,6.105263158,2.647368421,19.82228298 212 | 0.3475,10,2.291666667,1.081818182,9.259259259 213 | 0.272083333,5.958333333,2.083333333,0.336842105,6.764069264 214 | 0.304583333,6.541666667,1.916666667,1.1125,6.222943723 215 | 0.289583333,8,1.833333333,1.7375,7.407407407 216 | 0.313333333,9.708333333,3.791666667,2.6,12.31060606 217 | 0.569130435,9.826086957,4.391304348,3.045454545,14.25748165 218 | 1.02875,21.66666667,10.375,2.525,33.68506494 219 | 0.925416667,17,7.541666667,2.15,24.48593074 220 | 0.529130435,21.54166667,10.5,3.170833333,34.09090909 221 | 0.627083333,23.33333333,11.83333333,2.9875,38.41991342 222 | 0.545833333,19.5,10.54166667,2.795833333,34.22619048 223 | 0.570416667,16.41666667,7.666666667,0.95,24.89177489 224 | 0.758,21.57142857,10.42105263,1.6,33.83458647 225 | 0.82625,17.95833333,8.083333333,1.245833333,26.24458874 226 | 0.765833333,21.08333333,9.25,2.191666667,30.03246753 227 | 0.730416667,22.125,10.33333333,2.082608696,33.54978355 228 | 0.645,15.75,5.291666667,1.779166667,17.18073593 229 | 0.658333333,16.75,8.291666667,2.445833333,26.92099567 230 | 0.4625,17.08333333,10.58333333,2.920833333,34.36147186 231 | 0.242083333,5.875,2.083333333,1.379166667,6.764069264 232 | 0.285833333,5.125,1.041666667,1.645833333,4.74537037 233 | 0.345833333,21,13.58333333,2.1,44.1017316 234 | 0.334782609,28.04347826,21.5,3.2,66.55555556 235 | 0.274583333,12.29166667,0,2.816666667,11.38117284 236 | 0.402916667,8.291666667,0,2.1375,7.677469136 237 | 0.312916667,10.16666667,0,2.941666667,9.413580247 238 | 0.623333333,21.52173913,11.77777778,2.15,38.23953824 239 | 0.53625,23.25,12.33333333,3.686956522,40.04329004 240 | 0.56625,18.45833333,10.41666667,1.613043478,33.82034632 241 | 0.599583333,15.29166667,7.875,1.491666667,25.56818182 242 | 0.908333333,17.375,7.916666667,2.929166667,25.7034632 243 | 0.471666667,15.83333333,7.708333333,1.654166667,25.02705628 244 | 0.289583333,11.25,4.541666667,0.866666667,14.745671 245 | 0.703913043,16.82608696,9.695652174,3.009090909,31.47939018 246 | 0.7,22,15.33333333,3.113043478,49.78354978 247 | 0.652916667,29.54166667,18.20833333,1.954166667,58.02160494 248 | 0.80625,23.79166667,16.20833333,1.845833333,52.83641975 249 | 0.523333333,24.5,15.33333333,1.15,49.78354978 250 | 0.674166667,27.91666667,15.625,2.418181818,51.32407407 251 | 0.569583333,30.70833333,17.95833333,0.178947368,57.37345679 252 | 0.597916667,35.36363636,20.22727273,2.084210526,63.25589226 253 | 0.794166667,41.18181818,26.81818182,2.330434783,80.34343434 254 | 0.890454545,35.72727273,21.81818182,0.766666667,67.38047138 255 | 0.942083333,32.70833333,20.5,1.552173913,63.96296296 256 | 0.856666667,30.5,17.91666667,2.352173913,57.2654321 257 | 0.637083333,0,11.625,1.179166667,37.74350649 258 | 0.46125,0,5.208333333,0.416666667,16.91017316 259 | 0.524761905,0,4.869565217,2.19047619,15.81027668 260 | 0.72,24.38461538,10.83333333,1.986956522,35.17316017 261 | 0.73375,22.58333333,13.54166667,1.933333333,43.96645022 262 | 0.813333333,26.33333333,14.91666667,2.404166667,48.43073593 263 | 0.707083333,27.20833333,14.33333333,0.919047619,46.53679654 264 | 0.559583333,18.375,8.958333333,1.535294118,29.08549784 265 | 0.447083333,12.91666667,6.625,2.158333333,21.50974026 266 | 0.515,27.70833333,10.58333333,1.475,34.36147186 267 | 0.448333333,26.61904762,10.13636364,2.775,32.91027155 268 | 0.450833333,23.875,9.666666667,2.713333333,31.38528139 269 | 0.587083333,15.16666667,6.291666667,2.508333333,20.42748918 270 | 0.73,24.66666667,13.95833333,2.252941176,45.31926407 271 | 0.504583333,20.54166667,10.375,2.758333333,33.68506494 272 | 0.3975,9.5,5.75,2.017391304,18.66883117 273 | 0.597916667,10.375,5,3.660869565,16.23376623 274 | 0.57875,21.95833333,8.166666667,3.022727273,26.51515152 275 | 0.756086957,19.9047619,10.86956522,2.073913043,35.29079616 276 | 0.48625,30.125,13.29166667,1.133333333,43.1547619 277 | 0.367916667,28.33333333,13.58333333,1.429166667,44.1017316 278 | 0.362916667,15.83333333,7.5,2.3375,24.35064935 279 | 0.454166667,18.25,8.041666667,1.379166667,26.10930736 280 | 0.485,24,11.26086957,1.086956522,36.56126482 281 | 0.449583333,32.54166667,11.04166667,-0.035714286,35.8495671 282 | 0.502916667,29.08333333,10.29166667,1.772727273,33.41450216 283 | 0.66,33.83333333,12.41666667,3.857142857,40.31385281 284 | 0.556666667,25.29166667,11.20833333,2.366666667,36.39069264 285 | 0.3575,25.79166667,10.08333333,2.441666667,32.73809524 286 | 0.369583333,11.95833333,5.083333333,0.729166667,16.504329 287 | 0.375416667,14.83333333,4.5,1.4,14.61038961 288 | 0.374583333,13.5,8.083333333,0.625,26.24458874 289 | 0.455416667,31.625,12.33333333,2,40.04329004 290 | 0.430869565,31.26086957,12.13636364,1.947368421,39.40377804 291 | 0.472083333,30.5,13.16666667,1.745833333,42.74891775 292 | 0.445416667,25.75,9.708333333,0.925,31.52056277 293 | 0.389166667,24,12,2.4875,38.96103896 294 | 0.48,28.83333333,13.54166667,3.695833333,43.96645022 295 | 0.462083333,28.7826087,13.26086957,2.795833333,43.05477132 296 | 0.451666667,12.58333333,6.458333333,2.054166667,20.96861472 297 | 0.66375,9.666666667,5.958333333,1.5625,19.3452381 298 | 0.61625,57.875,21.66666667,1.066666667,66.98765432 299 | 0.31,47.33333333,13.875,1.533333333,45.0487013 300 | 0.280833333,21.70833333,7,0.479166667,22.72727273 301 | 0.35826087,20.875,8.083333333,1.982608696,26.24458874 302 | 0.3825,24.04166667,11.5,1.769565217,37.33766234 303 | 0.3775,26.20833333,14.70833333,2.170833333,47.754329 304 | 0.46173913,27.82608696,13.2173913,2.859090909,42.91360813 305 | 0.435416667,38.95833333,14.25,2.945833333,46.26623377 306 | 0.354583333,27.5,10.79166667,1.504166667,35.03787879 307 | 0.320833333,22.83333333,10.79166667,0.8125,35.03787879 308 | 0.43375,27.33333333,11,1.041666667,35.71428571 309 | 0.595833333,66.29166667,28.29166667,1.466666667,84.16358025 310 | 0.429583333,36.5,12.58333333,1.954166667,40.85497835 311 | 0.356521739,22.91304348,9.391304348,1.358333333,30.49124788 312 | 0.381666667,9.875,4.166666667,1.995833333,13.52813853 313 | 0.572083333,19.20833333,9.541666667,1.904166667,30.97943723 314 | 0.450416667,19,13.70833333,2.216666667,44.50757576 315 | 0.3725,47.04166667,15.79166667,2.766666667,51.75617284 316 | 0.309565217,22.39130435,8.869565217,1.591304348,28.79728967 317 | 0.365,32.83333333,11.25,1.6375,36.52597403 318 | 0.379166667,21.83333333,11.83333333,1.066666667,38.41991342 319 | 0.466666667,19.04166667,11.41666667,2.308333333,37.06709957 320 | 0.2925,21.20833333,10.5,0.858333333,34.09090909 321 | 0.305833333,21.83333333,9.875,1.145833333,32.06168831 322 | 0.361666667,16.70833333,6.75,1.291666667,21.91558442 323 | 0.36875,17.375,7.25,2.079166667,23.53896104 324 | 0.849166667,19.75,10.29166667,2.995833333,33.41450216 325 | 0.770833333,22.17391304,13.13043478,1.945833333,42.63128176 326 | 0.788333333,24,13.16666667,2.466666667,42.74891775 327 | 0.595416667,19.625,9.333333333,2.454166667,30.3030303 328 | 0.701666667,18.16666667,9.041666667,1.204166667,29.35606061 329 | 0.439565217,15.95652174,7.391304348,1.526086957,23.99774139 330 | 0.413333333,22.375,11,1.241666667,35.71428571 331 | 0.44875,17.73333333,8.083333333,1.847619048,26.24458874 332 | 0.466666667,18.2,9.916666667,1.25,32.1969697 333 | 0.553333333,24.91304348,12.08333333,1.645833333,39.23160173 334 | 0.461666667,15.20833333,6.916666667,2.466666667,22.45670996 335 | 0.33,11.75,6.791666667,2.466666667,22.0508658 336 | 0.41125,14.45833333,8.166666667,2.316666667,26.51515152 337 | 0.438333333,18.65217391,10.65217391,2.245833333,34.58498024 338 | 0.466666667,21.54166667,9.25,1.9375,30.03246753 339 | 0.55625,14.70833333,8.416666667,1.770833333,27.32683983 340 | 0.490416667,11,7.041666667,1.729166667,22.86255411 341 | 0.347916667,8.739130435,7.833333333,1.845833333,25.43290043 342 | 0.345416667,6.666666667,4.652173913,1.941666667,15.10446076 343 | 0.506956522,7,4.375,1.508695652,14.20454545 344 | 0.537916667,6.625,4.25,2.520833333,13.7987013 345 | 0.534583333,5.681818182,4.833333333,2.204166667,15.69264069 346 | 0.73875,7.375,5.958333333,0.9625,19.3452381 347 | 0.595217391,8.826086957,5.434782609,1.377272727,17.64539808 348 | 0.7175,35.70833333,23.79166667,1.775,72.49691358 349 | 0.89125,38.20833333,26.20833333,1.9,78.76234568 350 | 0.577083333,11.18181818,8.708333333,2.345833333,28.27380952 351 | 0.447916667,6.5,5.913043478,1.004166667,19.19819311 352 | 0.412916667,6.458333333,5.583333333,2.166666667,18.12770563 353 | 0.45,6.208333333,5.958333333,1.658333333,19.3452381 354 | 0.944166667,12.41666667,7.875,2.125,25.56818182 355 | 0.494583333,9.125,7.541666667,1.708333333,24.48593074 356 | 0.334166667,8.25,6.833333333,1.154166667,22.18614719 357 | 0.355238095,8.434782609,7.130434783,2.228571429,23.15076228 358 | 0.432083333,11.95652174,9.125,1.4,29.62662338 359 | 1.014583333,19.625,13.25,1.770833333,43.01948052 360 | 0.921666667,34.125,23.625,2.716666667,72.06481481 361 | 0.469583333,33.29166667,18.58333333,2.379166667,58.99382716 362 | 0.78375,20.29166667,12.875,2.5625,41.80194805 363 | 0.759166667,22.95833333,15.16666667,1.05,49.24242424 364 | 0.493043478,28,16.69565217,0.613043478,54.09983897 365 | 1.20375,36.375,20.04166667,2.225,62.77469136 366 | 0.66625,31.625,17.08333333,1.979166667,55.10493827 367 | 0.54875,37.27272727,17.86956522,1.95,57.14331723 368 | --------------------------------------------------------------------------------