| Algorithm 1 DDAE Weight Training Algorithm |
|
Input: DIFF value, network architecture, max_epoch, dropout_rate p, and learning rate ; Output: Trained weights and b; 1: Randomly initialize and b; 2: while do 3: Randomly select a mini-batch from inputs; 4: // Forward propagation; 5: // L is the number of layers of the DDAE; 6: for l = 2:L-2 do 7: if the current layer is a dropout layer then 8: 9: 10: 11: 12: else 13: // The current layer is a hidden layer; 14: 15: 16: end if 17: end for 18: //Loss function; 19: 20: end while |