#NEWLINE# def __call__( self , nn , train_history ) : #NEWLINE# #INDENT# nn . load_params_from ( self . remember . best_weights ) #NEWLINE# if self . remember . verbose : #NEWLINE# #INDENT# print ( 'Loaded best weights from epoch {} where {} was {}' . format ( self . remember . best_weights_epoch , ( self . remember . score or self . remember . loss ) , ( self . remember . best_weights_loss * ( ( - 1 ) if self . remember . score else 1 ) ) ) )