Redefine MnistModel class

I am not able to understand list comprehension in batch_losses and batch_accs in the validation_epoch_end and epoch_end function.
Also not able to get working of evaluate function. Please help in this regard.