Skip to main content
. 2020 Nov 21;20(22):6670. doi: 10.3390/s20226670
Algorithm 2: Genetic algorithm-based reweighted feature selection
Input: FV: Multi-fused feature vectors (u1, u2, u3,… un) /* acquire feature vector */
Output: FL: Multi-fused feature list (l1, l2, lm) /* obtain vector of optimal features*/
/* feature vectors are converted into corresponding chromosomes */
for vector in populationlab do
/* multi-fused-feature vectors are further processed and reweighted to extract an optimal weight
 RewightedFeatures <- []
while fitness not achieved or fitness not changing do
  for feature in vector do
   ReweightedFeatures (feature)
  end for
  Rechoose ()
  offspring1, offspring2 <- CrossOver (vector) /* calculate crossover chromosomes*/
  mutated <- Mutation (vector)     /* calculate global maxima */
/*obtain relevant features on the basis of Linear Support Vector Machine (LSVM) and random forest-based fitness function*/
  Evaluationfunction <- GetFitness (vector)
end while
return ReweightedFeatures
end for