Start
(1) Loading of training data
(2) Random starting of antibody set
(3)   While (maximum iteration step)
(4)    Computation of affinity value for each antigen
(5)    Update of reinforcement weights between each antibody and antigen
(6)     Creation of clones of antibodies
(7)     Selection of memory cells
(8)   End while
(9)   Classification of Q memory cells
(10) End of algorithm
Pseudocode 4: The pseudocode of reinforcement learning based artificial immune classifier.