Skip to main content
. 2024 Jul 20;24(14):4713. doi: 10.3390/s24144713
Algorithm 1 Generate a Feasible Solution
  • Input: latent dimension K, knowledge graph G, target predicate p

  • Output: Up, Vp, bp
    •   1:
      Construct bipartite subgraph Gp from G and p
    •   2:
      m number of subject entities in Gp
    •   3:
      n number of object entities in Gp
    •   4:
      Generate training samples Dp, using uniform sampling
    •   5:
      Initialize Up (m×K), Vp (n×K), bp (n×1) with mean 0 and standard deviation 0.1
    •   6:
      for all (sp,op+,op)Dp do
    •   7:
       Update Usp, based on Equation (16)
    •   8:
      end for
    •   9:
      return Up, Vp, bp
HHS Vulnerability Disclosure