Skip to main content
. 2023 May 14;23(10):4745. doi: 10.3390/s23104745
Algorithm 3 The HCN model for classification.

Require: SQ, two-dimensional spectrum.

Ensure: ACC, accuracy of HCN classification.

 1: for i=1,2,,Nepochs do

 2:       for t=1,2,,n do

 3:             HCN ←(SQ)tNtrain, training HCN models.

 4:             Save training parameters.

 5:       end for

 6:       for t=1,2,,n do

 7:             HCN ←(SQ)tNtest, input testing dataset to the trained HCN model.

 8:             ACC← HCN, calculating the accuracy of model judgments.

 9:       end for

 10:     Take the average of the accuracy rate of each epoch.

 11: end for