|
Algorithm 1: Prediction algorithm process in TKDF—TKDF for Time-Series Prediction |
|
Input: Historical timestamp , future timestamp , historical sequence
|
|
Output: Future sequence
|
| Hyperparameter: Learning rate , weight
|
| 1. Initialization: Network and Network
|
| 2. [The pre-training stage]: utilize to predict
|
| 3. for do: |
| 4. Calculate self-distillation loss:
|
| 5. Update parameters of the timestamp mapper:
|
| 6. end for |
| 7. [The Multi-branch Prediction Stage]: utilize and to predict
|
| 8. for do: |
| 9. Calculate mutual learning loss of network :
|
| 10. Calculate mutual learning loss of network :
|
| 11. Update parameters of network :
|
| 12. Update parameters of network :
|
| 13. Update the prediction result |
| 14. End for |