Reason is this, you do it in  your code;



 111137:


train the model, generates result, and update parameters.
eval the model using updated parameters, and generates result.
repeat this sequence by for-loop (going back to 1)



Means your program correctly works.