Skip to main content
. 2022 Sep 29;10(10):2438. doi: 10.3390/biomedicines10102438
Algorithm 1: Training FAM network
  1. FNT = Training (F, l)//FNT-Trained FAM Network

  2. //F: Feature Vector, l: Label → Class of the feature vector.

  3. Initialize ρ, NE = 0//ρ = Vigilance Parameter, NE: Count training epochs

  4. While NE < number of training epochs

  5. Ii = F = (a1,a2,…,ad);//d: dimension of feature vector

  6. AI1 = (a1, a2,…,ad,1-a1,1-a2,…,1-ad)

  7. if AI = first input of label l

  8. W = AI

  9. W←l

  10. else for (all j) compute Tj(AI) = AIWj/α+Wj

  11. J = argmax (Tj(AI); J: Winner node

  12. if AIWj/AIρ; vigilance test

  13. if l = J:Wknew=Wkold+β(AIWkold)

  14. else:ρ=MFk(AI)+

  15. While (more winner nodes are available)

  16. While (more training patterns are available)

  17. End