Research Article
Investigations on Brain Tumor Classification Using Hybrid Machine Learning Algorithms
Table 1
Firefly algorithm pseudocode.
| Begin | (1) Objective function: f (x), x = x1, x2, …, Xn; | (2) Generate an initial population of fireflies | Xi (i = 1, 2, 3). | (3) Formulate light intensity I so that it is associated with f (x) | (for example, for maximization problems, I α f (x) or simply I = f (x);) | (4) Define absorption coefficient γ | While (t < MaxGeneration) | for i = 1: n (all n fireflies) | for j = 1: i (n fireflies) | if (i, j), | Vary attractiveness with distance r via Exp (−𝛾, 𝑟); | move firefly i towards j; | Evaluate new solutions and update light intensity; | end if | end for j | end for i | Rank fireflies and find the current best; | end while | Postprocessing the results and visualization; | end |
|
|