def report(self, score_map, type="<STR_LIT>", epoch=-<NUM_LIT:1>, new_best=False):
type_str = type<EOL>if len(type_str) < <NUM_LIT:5>:<EOL><INDENT>type_str += "<STR_LIT:U+0020>" * (<NUM_LIT:5> - len(type_str))<EOL><DEDENT>info = "<STR_LIT:U+0020>".join("<STR_LIT>" % el for el in score_map.items())<EOL>current_epoch = epoch if epoch > <NUM_LIT:0> else self.current_epoch()<EOL>epoch_str = "<STR_LIT>".format(current_epoch + <NUM_LIT:1>)<EOL>if epoch < <NUM_LIT:0>:<EOL><INDENT>epoch_str = "<STR_LIT>"<EOL>sys.stdout.write("<STR_LIT:\r>")<EOL>sys.stdout.flush()<EOL><DEDENT>marker = "<STR_LIT>" if new_best else "<STR_LIT>"<EOL>message = "<STR_LIT>".format(type_str, epoch_str, info, marker)<EOL>self.network.train_logger.record(message)<EOL>logging.info(message)<EOL>
Report the scores and record them in the log.