Research Article
RLMD-PA: A Reinforcement Learning-Based Myocarditis Diagnosis Combined with a Population-Based Algorithm for Pretraining Weights
Algorithm 3
Pseudocode of Reward function.
(1) | Function Reward : | (2) | False; | (3) | ifthen | (4) | ifthen | (5) | 1; | (6) | else | (7) | ; | (8) | True; | (9) | end | (10) | else | (11) | if = = then | (12) | ; | (13) | else | (14) | ; | (15) | end | (16) | end | (17) | return | (18) | End Function |
|