Skip to main content
. 2021 Nov 23;12(12):1847. doi: 10.3390/genes12121847
Algorithm 1 The extended RDA model
1: Input: Observed genotype matrix X∈Rn×m; Index set of observed entries Ω
2: Initialize LD∈Rn×m, S∈Rn×m to be zero matrices, LS←X, and an autoencoder DE· with randomly initialized parameters.
3: while True do:
4:   LD=X−S
5:   θ=argminθ‖LD−DθEθLD‖2
6:   LD=DθEθLD
7:   S=X−LD
8:   PΩS=proxPΩS
9:   c1=‖X−LD−S‖2/‖X‖2 # check the convergence condition
10:  c2=‖LS−LD−S‖2/‖X‖2 # check the convergence condition
11:  if c1<ε or c2<ε: break
12:  LS=LD+S # update LS for convergence checking in the next iteration
13: return LD and S