visdom

1. 启动

python3 -m visdom.server

2. 初始化

from visdom import Visdom
import numpy as np
viz = Visdom(env='loss')
x,y=0,0.2
win = viz.line( X=np.array([x]), Y=np.array([y]), opts=dict(title='loss'))

  • Visdom(server='http://localhost', endpoint='events', port=8097, ipv6=True, http_proxy_host=None, http_proxy_port=None, env='main', send=True, raise_exceptions=None, use_incoming_socket=True)

3.更新参数

viz.line(X=np.array([x_new]),Y=np.array([y_new]), win=win,update='append')

你可能感兴趣的:(visdom)