Mathematical Problems in Engineering / 2013 / Article / Psdc 3

Research Article

A Constructive Data Classification Version of the Particle Swarm Optimization Algorithm

Pseudocode 3

Particle Swarm Classifier (PSClass).
1. procedure X, PLABELS = PSClass (Y, max, , , CLABELS)
2. Y//dataset
3. CLABELS//correct_labels
4. X, V, P, g, , PLABELS = PSC (Y, max, , , CLABELS)
5. while stopping criterion is not met
6.  for to //for each object
7.   for to //for each particle
8.     dist ( ) = distance ( )
9.   end for
10.   I = index (min (dist))
11.   if distance ( ) < distance ( )
12.      =
13.   end if
14.   if distance ( ) < distance ( )
15.      =
16.   end if
17.    = + φ 1 ( ) + ( ) + ( )
18.    max, max
19.   if (PLABELS ( ) == CLABELS ( ))
20.      ( ) = ( ) + ( )
21.   else
22.      ( ) = ( ) −  ( )
23.   end if
24.  end for
25.  
26.  Test the stopping criterion
27. end while
28. end procedure

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.