def on_episode_end(self, episode, logs={}):
for callback in self.callbacks:<EOL><INDENT>if callable(getattr(callback, '<STR_LIT>', None)):<EOL><INDENT>callback.on_episode_end(episode, logs=logs)<EOL><DEDENT>else:<EOL><INDENT>callback.on_epoch_end(episode, logs=logs)<EOL><DEDENT><DEDENT>
Called at end of each episode for each callback in callbackList