In my research work i need to find out those features which are most significant for classification. Or I need to find out most useful features and again i have to train classifier and need to check accuracy with reduced feature. [all these i need to do with pso] so my question is how I can obtain reduced features?
I have written following code for PSO update of postion and velocity
for i in range(rows): # rows = no of samples
# dim = 30 which is randomly selected from 384 dimensions
for j in dim: