Genetic Algorithm HPO
Genetic Algorithm HPO
Genetic Algorithm HPO
This article includes the application of the genetic algorithm in the fields of computer
networks and deep learning, it highlights the proposed framework's focus on
combining deep transfer learning and genetic algorithm techniques to achieve
optimized intrusion detection capabilities.
The goal of this GA-based HPO algorithm is to find the optimal set of
hyperparameters for training a Convolutional Neural Network (CNN )model to
achieve the best performance within the framework of GA-based Hyperparameter
Optimization (HPO). The comprehensive procedure is delineated in Algorithm 1.
Each hyperparameter is represented as a chromosome, which is a binary string. The
decimal value of the chromosome represents the value of the corresponding
hyperparameter. This allows the GA to manipulate hyperparameters using genetic
Journal of Network and Computer Applications 221 (2024) 103784
. For Iteration the GA iteratively refines the population of chromosomes over multiple
generations. Each generation involves the following steps:
1. Evaluation: The fitness of each chromosome is evaluated by training a CNN
model with the corresponding hyperparameters and measuring its
performance.
2. Selection: Chromosomes with higher fitness values are more likely to be
selected for reproduction. This ensures that the next generation contains a
higher proportion of chromosomes with better hyperparameters.
3. Crossover: Selected chromosomes are paired, and their genes are combined
to create new chromosomes. This allows the GA to explore new combinations
of hyperparameters.
4. Mutation: Random changes are introduced to the genes of chromosomes. This
prevents the GA from getting stuck in local optima and helps it explore a wider
range of hyperparameter values.
5. Replacement: The new chromosomes generated through crossover and
mutation replace the old chromosomes in the population.