Serialize the state of the Visdom server to disk. Unless you have a fancy schedule, where different are saved with different frequencies, you probably only need one of these.
| 895 | |
| 896 | |
| 897 | class VisdomSaver(object): |
| 898 | ''' Serialize the state of the Visdom server to disk. |
| 899 | Unless you have a fancy schedule, where different are saved with different frequencies, |
| 900 | you probably only need one of these. |
| 901 | ''' |
| 902 | |
| 903 | def __init__(self, envs=None, port=8097, server="localhost"): |
| 904 | super(VisdomSaver, self).__init__() |
| 905 | self.envs = envs |
| 906 | self.viz = visdom.Visdom(server="http://" + server, port=port) |
| 907 | |
| 908 | def save(self, *args, **kwargs): |
| 909 | self.viz.save(self.envs) |
| 910 | |
| 911 | |
| 912 | class VisdomLogger(BaseVisdomLogger): |
nothing calls this directly
no outgoing calls
no test coverage detected