Skip to main content
. 2021 Nov 11;72:103304. doi: 10.1016/j.bspc.2021.103304
Algorithm 1. TRAINING INTERATION PROCEDURE

Require:B is the batch size, β is a batch of data with size B, and ε donates each sample in a batch. Lscore is score loss, Lboundary is boundary loss, η is a hyperparameter, θ denotes the model parameters, θ~ denotes the updated model parameters. α is the learning rate.
1: β=RandomSampleε1,···,εN,B
2: forεjβ
3:  Lscore+=t=0jCEH(scoret,st)
4:  Lboundary+=t=0j(SmoothL1(2*σ(Δy1,t),2*σ(t-gtbleft,t))+SmoothL1(2*σ(Δy2,t),2*σ(gtbright,t-t)))*st
5:  L+=η*Lscore+(1-η)*Lboundary
6: end for
7: θ~=θ-αθL
8: returnθ~