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', 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()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file losswise-1.9.tar.gz.
File metadata
- Download URL: losswise-1.9.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6affc664a4922d7ab67686779be4fb6046bff32c9e3ff03d942471d3f61b81a9
|
|
| MD5 |
d156e56551c41f60a67332b9ec64ec57
|
|
| BLAKE2b-256 |
eeb8cf7600d0a6225cb58d5980cf3a7d9d800c1a4e8183e78d9e91510b96d1ee
|
File details
Details for the file losswise-1.9-py2.py3-none-any.whl.
File metadata
- Download URL: losswise-1.9-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b079c85836584f478c206a3c17325d73c53dd6f315a4eecf883c1ead01b2c8fc
|
|
| MD5 |
4130b3697ad8015763c9355f6c87f5c1
|
|
| BLAKE2b-256 |
8ebbe9a96f1645d2e8db6fba4fe9ea507cada3507799ff954d5e01ecb65e3b20
|