Official Losswise library for Python
Project description
This is the official Losswise Python library. This library allows for server-side integration of Losswise.
Installation
The library can be installed using pip:
pip install losswise
Getting Started
First create an account on the Losswise website (https://losswise.com). This will automatically generate a unique API key.
Typical usage usually looks like this:
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') # create empty graph for loss, keep track of minima here hence kind='min' graph = session.graph('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})
You can then view the visualization results on your dashboard.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
losswise-0.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for losswise-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e8939695ee138dc8fe12d561e057952b7645cb965c944ae01d8854ca9f0db0 |
|
MD5 | 19b15985871d4d3e522380dae75e06d6 |
|
BLAKE2b-256 | 1c669e2c2f0a5e2815d51ce1eeb17c6affbf2007b1c9310ad0bc5c8fbfc8aace |