Steps | Algorithm-1 // Pseudo Code for the Proposed Model |
---|---|
01 | Input: Bias weight, concealed units, Epochs, Learning Rate |
02 | Target: Prediction of Normal/Heart Diseases |
03 |
Bias weight, concealed units, epochs, and learning rate should be assigned at
random. |
04 | Set the three parameters |
05 | Use While loop for true |
06 | Use equation (5) to determine the output from GRU cells |
07 | Use the formula (28) for determining the fitness function |
08 | Start the For loop from t=1 to Max. iteration |
09 | Use equations (25 & 26) to assign the bias weights & input layers |
10 | Use equation (28) for calculating the fitness function |
11 | Check If condition for (Fitness function is equal to threshold) |
12 | jump to Step 17 |
13 | Otherwise |
14 | jump to Step 8 |
15 | Stop |
16 | Stop |
17 | Calculate the Output function from Dense layers using Equation (10) |
18 | If Output function is equal to 1 |
19 | //Normal or No disease is determined ⇨estimated |
20 | Else if (output function<=2&&>1) |
21 | // heart disease -1 ⇨estimated |
22 | Else if (output function <=3&&>2) |
23 | // heart disease -2 ⇨estimated |
24 | Else |
25 | jump to Step 9 |
26 | Stop |
27 | Stop |
28 | Stop |