Skip to main content
. 2020 Dec 19;20(24):7307. doi: 10.3390/s20247307
Algorithm 1 K-margin(x(i),K,ϕ)
  • Input: A T-segments array x(i)={x1(i),x2(i),,xT(i)} of an input health-condition monitoring record x(i), trained multi-view RCR-Net model ϕ

  • Parameter: An integer K

  • Output: Top-K most confident segments X1:K(i) and their label predictions Y^1:K(i)
    • 1:
      x(i)x(i)
    • 2:
      X1:K(i), Y^1:K(i), kK
    • 3:
      whilek>0do
    • 4:
      x(i)Mostconfidentsegmentpredictingbyϕ(x(i)) using Equation (3)
    • 5:
      y^(i)Mostconfidentlabelpredictingbyϕ(x(i)) using Equation (4)
    • 6:
      x(i)x(i))\x(i) # Implementation: remove segment index of x(i) from segment indexes list of x(i)
    • 7:
      X1:K(i)X1:K(i){x(i)}, Y^1:K(i)Y^1:K(i){y^(i)}
    • 8:
      kk1
    • 9:
      end while
    • 10:
      returnX1:K(i),Y^1:K(i)