def on_train_end(self, training_state):
# Reset caret to last position
to_be_printed = ""
if CURSES_SUPPORTED: #if not self.has_ipython #TODO:check bug here
for i in range(len(self.data) + 2):
to_be_printed += "\033[B"
if not self.snapped:
to_be_printed += "--\n"
sys.stdout.write(to_be_printed)
sys.stdout.flush()
# Set caret visible if possible
if CURSES_SUPPORTED:
sys.stdout.write(curses.tigetstr('cvvis').decode())
评论列表
文章目录