python TOD.py --crsrd-id 1850041700 --input-dir ./data --output-dir ./result --max-tod 4
- crsrd-id : smart-intersection ID
- input_dir : directory including input datasets
- output-dir : directory to save the results
- max-tod : maximum number of TOD groups (> 1)
Using dataset from smart-intersection, the time table with TOD labels is estimated by K-means method
- Time units: 30 minutes
- Single intersection(crossroad)
- Note: Go-direction traffic includes right-turn traffic TOD considers day types - weekdays, saturday, and sunday
- Python 3
- pandas
- dplython
- scikit-learn
- ORT_CCTV_5MIN_LOG
- ORT_CCTV_MST
- For each day type, time (30 min-unit), TOD is labeled
- Example
- Traffic characteristics according to each TOD period
- turning rate
- total traffic (veh/30min)
- Example
- (1st) moving average
- (2nd) fill with 0 and drop na or inf values during normalization
- Still need to improve
python uniq_rse_analysis.py ./data/RSE_COL_20211124.xlsx 20211124
- Target RSE Data File Name
- Target Date (on which the RSE Data is collected)
- Analyze the travel time between specific RSE spots, and draw/store the Boxplot Figure of the travel time according to RSE spots.
- Output Example
python tod_generator.py --input-dir ./data --output-dir ./result --max-tod 10
- traffic_input.csv
- crsrd_sa.csv
- For each SA, day type, time (1 hour-unit), TOD is labeled