(self, epoch, logs=None)
On Epoch end - do some stats
On Epoch end - do some stats
On Epoch end - do some stats
def on_epoch_end(self, epoch, logs=None):
        """On Epoch end - do some stats"""
        ctable = CharacterTable(read_top_chars())
        X_val, y_val = next(generator(NEWS_FILE_NAME_VALIDATE))
        print_random_predictions(self.model, ctable, X_val, y_val)
        self.model.save(SAVED_MODEL_FILE_NAME.format(epoch))
def on_epoch_end ( self , epoch , logs = None ) : ctable = CharacterTable ( read_top_chars ( ) ) X_val , y_val = next ( generator ( NEWS_FILE_NAME_VALIDATE ) ) print_random_predictions ( self . model , ctable , X_val , y_val ) self . model . save ( SAVED_MODEL_FILE_NAME . format ( epoch ) )