Research Article
Traffic Flow Prediction and Application of Smart City Based on Industry 4.0 and Big Data Analysis
| Input: import trainset (hotspotsi, m, w)--dataset R; | | Number of times——K; | | Scheme-single-level decision tree; | | Output: composite model. | (1) | Start: | (2) | weight setting——1/[R]; | (3) | for(i = 1; i < K; i++); | (4) | Sampling put back—— and forecasting model——; | (5) | Error rate Э of model ; | (6) | if Э > 0.5 return to step 6; | (7) | for (all data in ); | (8) | Update the weight of data ; | (9) | end for; | (10) | return to K group training model; | (11) | End. |
|