Research Article
Building an Effective Intrusion Detection System by Using Hybrid Data Optimization Based on Machine Learning Algorithms
Algorithm 4
Calculate_Fitness_FS().
Input: , , Chromosome population | |
Output: Fitness set | |
for = 1: | |
Extract data from , based on and get , | |
Train Random Forest classifier based on | |
Test rf based on , and get classification | |
Calculate F1-score based on actual class and classification | |
= | |
end |