Skip to main content
. 2022 Jan 2;12(1):64. doi: 10.3390/biom12010064
Algorithm 1 NIMGSA Algorithm
  • Input: 

    initial association matrix Y, miRNA similarity matrix Sm, disease similarity matrix Sd

  • Output: 

    score matrix F

  • 1:

    Compute the adjacency matrix of miRNA graph Am and disease graph Ad via Equations (21) and (22) respectively

  • 2:

    repeat

  • 3:

       Compute Query: Zm=Enc(Am,Y)    // Equation (19)

  • 4:

       Compute Key: Zd=Enc(Ad,YT)    // Equation (20)

  • 5:

       Fm=Dec(Am,Zm)    // Equation (25)

  • 6:

       Fd=Dec(Am,Zd)    // Equation (26)

  • 7:

       Compute Value: F=αFm+(1α)FdT    // Equation (28)

  • 8:

       Compute attention score as Equation (29)

  • 9:

       Train GAEm and GAEd through optimizing Equation (32)    // Update W (i.e., parameters of neural networks) in Equation (32) by Adam optimizer

  • 10:

    until Convergence

  • 11:

    return F