Research Article

A Comparative Analysis of Swarm Intelligence Techniques for Feature Selection in Cancer Classification

Pseudocode 1

Pseudocode for PSO.
For each particle
 Initialize particle
END
Do
 For each particle
  Calculate fitness value
  If the fitness value is better than its personal best
   Set current value as the new
 End
Choose the particle with the best fitness value of all as
 For each particle
  Calculate particle velocity according (4)
  Update particle position according (5)
 End
While maximum iterations or minimum error criteria is not attained