Research Article

Building an Effective Intrusion Detection System by Using Hybrid Data Optimization Based on Machine Learning Algorithms

Algorithm 3

GA_RF_FS .

Input: New training dataset , testing dataset
Output: Optimal feature subset
Generate initial population
While not reach terminating condition
Calculate fitness (, , )
Selection()
/, are probabilities of crossover and mutation respectively./
Crossover (, )
Mutation (, )
End While
= Chromosome with the highest fitness in
= Convert to feature number
End