python的官方losswise库
losswise的Python项目详细描述
这是正式的losswise python库。这个库允许 losswise的服务器端集成。
安装
可以使用pip安装库:
pip install losswise
开始
首先在losswise网站(https://losswise.com)上创建一个帐户。这将自动生成唯一的api密钥。
典型用法通常如下:
import random import losswise # replace with your own api key losswise.set_api_key('your_api_key') # replace with a string that identifies your model session = losswise.Session(tag='my_dilated_convnet', max_iter=10, data={'num_params': 10000000}) # create empty graph for loss, keep track of minima here hence kind='min' graph = session.graph(title='loss', kind='min') # track artificial loss over time for x in xrange(10): train_loss = 1. / (0.1 + x + 0.1 * random.random()) test_loss = 1.5 / (0.1 + x + 0.2 * random.random()) graph.append(x, {'train_loss': train_loss, 'test_loss': test_loss}) # mark session as complete session.done()
然后可以在仪表板上查看可视化结果。