Skip to main content
. 2022 Dec 2;22(23):9404. doi: 10.3390/s22239404
Algorithm 2 Compression Algorithm
  • Input: 

    Use Xretrain as the training set and a teacher model Ms.

  •  1:

    for each epoch do

  •  1:

     Calculate the soft loss Lsoft.

  •  1:

     Calculate the hard loss Lhard.

  •  1:

     Calculate the total loss in Equation (4).

  •  2:

    end for

  •  3:

    Output: A new student model Mt.