(log_loss, save_path)
| 25 | |
| 26 | |
| 27 | def save_logfile(log_loss, save_path): |
| 28 | with open(save_path, 'wt') as f: |
| 29 | for k, v in log_loss.items(): |
| 30 | w_line = k |
| 31 | for digit in v: |
| 32 | w_line += ' %.3f' % digit |
| 33 | f.write(w_line + '\n') |
| 34 | |
| 35 | |
| 36 | def print_current_loss(start_time, niter_state, losses, epoch=None, inner_iter=None): |
nothing calls this directly
no outgoing calls
no test coverage detected