Research Article

Dynamic Learning Rate in Deep CNN Model for Metastasis Detection and Classification of Histopathology Images

Algorithm 2

Pseudocode for the stochastic weight averaging (SWA).
Data: epochs, callbacks, lr
Result: SWA after predefined epochs
1 initialization;
2 whileepochs not completedo
3 ifthen
4  switchSWAdo
5   select the SWA mode
6  end
7  caseconstantdo
8   
9  end
10  casecyclicdo
11   ;
12   continue till last epoch
13  end
14 else
15  ;
16 end
17 end