|
Algorithm 1. Dynamic Traffic Flow Prediction |
| Input: sparse traffic flow tensor X with data removed in the prediction horizon. |
| Output: traffic prediction tensor . |
| 1. Set the order of the core tensor . |
| 2. Initialize the core tensor . |
| 3. Initialize each factor matrix
|
| 4. Utilize the factor matrices to calculate the core tensor , according to the formula in (6). |
| 5. Pre-calculate the tensor with norm . |
| 6. Calculate tensor . |
| 7. Calculate the tensor . |
| 8. Calculate . |
| 9. Calculate the gradient matrix as
|
| 10. Utilizing the gradient decent algorithm to get the core tensor and the factor matrices . |
11. Calculate the filled tensor
|
| 12. Return
|