self.log({'loss':1, 'lr':0.0001})
(self, info, title='log_text')
| 42 | ) |
| 43 | |
| 44 | def log(self, info, title='log_text'): |
| 45 | """ |
| 46 | self.log({'loss':1, 'lr':0.0001}) |
| 47 | """ |
| 48 | |
| 49 | log_text = ('[{time}] {info} <br>'.format( |
| 50 | time=time.strftime('%m%d_%H%M%S'),\ |
| 51 | info=info)) |
| 52 | self.vis.text(log_text, title, append=True) |
| 53 | |
| 54 | |
| 55 | if __name__ == '__main__': |
no outgoing calls