|
Algorithm 1: TF-SCN |
|
Input: Training dataset ; Lmax is the maximum number of nodes in the hidden layer across both branches; maximum candidate trials Tmax; residual tolerance ; tolerable error σ; regularization coefficient ; random parameter bound η. |
|
Output: Temporal parameters ΘT, frequency-sensitive parameters ΘF, output weight β, and prediction results. |
| 1. Initialize HT = ∅, HF = ∅, ΘT = ∅, ΘF = ∅, LT = 1, LF = 1. |
| 2. while (LT < Lmax or LF < Lmax) and ||E|| > σ do: |
| 3. Initialize candidate set Φ = ∅, Ω = ∅, t = 0; |
| 4. while (ΘT and ΘF are empty) and t < Tmax do: |
| 5. Generate a random number r on the interval [0, 1]; |
| 6. Solve the sequence value: ; |
| 7. Generate , randomly in [−η, η]; |
| 8. Generate , randomly in [−η, η]; |
| 9. Construct temporal feature representation for the candidate node according to Equation (2); |
| 10. Construct frequency feature representation for the candidate node according to Equation (3); |
| 11. Calculate and according to Equation (8); |
| 12. if : |
| 13. Append to the set Φ; |
| 14. LT = LT + 1; |
| 15. end if
|
| 16. if : |
| 17. Append to the set Ω; |
| 18. LF = LF + 1; |
| 19. end if
|
| 20. t = t + 1 |
| 21. end while
|
| 22. Add and into ΘT, ΘF; |
| 23. Solve β according to Equation (7); |
| 24. Update residual matrix based on Equation (6); |
| 25.end while
|