Research Article

[Retracted] A Classification Method of Network Ideological and Political Resources Using Improved SVM Algorithm

Algorithm 1

Particle swarm algorithm.
Input: particle length and number, dataset.
 Output: the best individual.
 step:
(1)Set the population size and initialize the position and speed of the population
(2)Calculate the fitness of each particle
(3)For each particle, compare its fitness value with the best position p-best it has passed. If the value is larger, it will be regarded as the best position p-best of the particle
(4)For each particle, compare its fitness value with its global best position g-best. If the value is larger, it will be regarded as the best global position g-best
(5)Update the speed and position of each particle according to the values obtained in steps (2), (3), and (4)
(6)If the end condition is not reached (the predetermined number of iterations or a good enough fitness value is not reached)
 Go to step (2) to continue running; otherwise, go to step (7)
(7)Output g-best