|
Algorithm 1 Adaptive Sample Scheduling Module |
| 1: |
procedure AdaptiveTraining
|
|
| 2: |
Initialization:
|
|
| 3: |
|
▹ Model parameters |
| 4: |
|
▹ Hard sample repository |
| 5: |
|
|
| 6: |
|
▹ Initial support ratio |
| 7: |
|
▹ Stagnation counter |
| 8: |
|
▹ Best accuracy |
| 9: |
while not converged do
|
|
| 10: |
MiniBatchTraining(, S, Q) |
|
| 11: |
if then
|
|
| 12: |
|
|
| 13: |
if
then
|
|
| 14: |
|
|
| 15: |
|
|
| 16: |
|
|
| 17: |
else
|
|
| 18: |
|
|
| 19: |
if then
|
|
| 20: |
|
|
| 21: |
|
▹ Maintain total samples |
| 22: |
|
|
| 23: |
|
|
| 24: |
end if
|
|
| 25: |
end if
|
|
| 26: |
end if
|
|
| 27: |
end while
|
|
| 28: |
return
|
|
| 29: |
end procedure |
|