Skip to main content
. 2024 Feb 26;24(5):1498. doi: 10.3390/s24051498
Algorithm 1 The proposed model training algorithm.
  • Input: Historical spectrum data sequence

  • Output: Trained long-term joint temporal–spectral network

  • //Construct the dataset

  • 1: construct spectrum matrix χtn,χtn+1,,χt2,χt1,χt from historical spectrum data

  • 2: Dϕ

  • 3: divide set D into train set Dtrain and test set Dtest

  • 4: //Train the proposed prediction model

  • 5: initialize all learn-able parameters in long-term joint temporal–spectral network

  • 6: Repeat

  • 7:      randomly select a batch of instances from Dtrain

  • 8:      find w, b by minimizing the objective (6)

  • 9: Until the training epochs are met

  • 10: //Test the proposed prediction model

  • 11: for each sample in Dtest do

  • 12:      fed into the trained proposed model

  • 13:      output the prediction results of that sample

  • 14: end for