|
Algorithm 1 Pseudocode for training the BERT-DTCN. |
-
Require:
: training set for the BERT-DTCN, including the constructed defect text dataset and labels; : number of classifier-training iterations per mini-batch.
-
1:
for the number of training iterations do
-
2:
Sample mini-batch of m examples from the training set ;
-
3:
for do
-
4:
Update the BERT-DTCN by minimizing the loss:
-
5:
end for
-
6:
end for
|