Research Article
Medical Image Classification Utilizing Ensemble Learning and Levy Flight-Based Honey Badger Algorithm on 6G-Enabled Internet of Things
Algorithm 1
Pseudocode of the proposed HBA.
(1) | Initialize the parameters , N, , C. | (2) | Initialize the number of solutions (N). | (3) | Evaluate the fitness of each honey badger position using objective function and assign to , i [1, 2, …, N]. | (4) | Save best position and assign fitness to . | (5) | repeat | (6) | Update the decreasing factor using equation (4). | (7) | Calculate the intensity using equation (2). | (8) | for to do | (9) | if r < 0.5 then | (10) | Update the position using equation (3). | (11) | else | (12) | Update the position using equation (6). | (13) | end if | (14) | Evaluate new position and assign to . | (15) | ifthen | (16) | Set = and = . | (17) | end if | (18) | ifthen | (19) | Set = and = . | (20) | end if | (21) | end for | (22) | until The iteration criterion has been met. | (23) | Return the . |
|