|
Algorithm 1 Uncertainty-aware augmented sample selection (ACPs-ASSF) |
|
Require: Original training dataset ; augmented sample dataset ; prediction model with trainable parameters ; uncertainty threshold and confidence threshold ; number of stochastic forward pass times ; number of iterations for selecting samples ; number of epochs for training model. |
| 1: |
; |
▷ obtain training set |
| 2: |
for to do
|
|
| 3: |
Initialize ; |
|
| 4: |
if
|
|
| 5: |
; |
▷ merge the selected samples to the training set |
| 6: |
for to do
|
|
| 7: |
Train using ; |
▷ using CE loss and SGD |
| 8: |
end for
|
|
| 9: |
for
to
do
|
|
| 10: |
; |
|
| 11: |
Input samples from into ; |
▷ accumulate the output of each pass |
| 12: |
end for
|
|
| 13: |
Compute the uncertainty and pseudo-labels by Equations (9) and (10); |
| 14: |
Use Equation (11) to obtain ; |
▷ select augmented samples |
| 15: |
end for
|
|
| 16: |
return
|
|