Algorithm 2: Fitness Evaluation of ETLBOCBL-CNN |
Inputs: , , , , , ,
|
01: |
Construct a candidate CNN architecture based on the network and learning hyperparameters decoded from and insert a fully connected layer with output neurons; |
02: |
Compute and using Equations (4) and (6), respectively; |
03: |
Generate the initial weights of the CNN model as using the selected weight initializer; |
04: |
for to do
|
05: |
for to do
|
06: |
Calculate of CNN model; |
07: |
Update the weights based on Equation (5); |
08: |
end for
|
09: |
end for |
10: |
for to do
|
11: |
Classify the dataset using the trained CNN model; |
12: |
Record the classification errors for solving the dataset as ; |
13: |
end for |
14: |
Calculate of the candidate CNN architecture built from with Equation (7); |
Output:
|