losswise-python
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.
Metadata
Release files for losswise 4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| losswise-4.0.tar.gz | 6.2 kB | Without provenance | Details for losswise-4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| losswise-4.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for losswise-4.0-py2.py3-none-any.whl |
Total release size: 13.4 kB
Release files / losswise-4.0.tar.gz
| Download URL | losswise-4.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59484e807e1c67c54c006ba2108e6251025d848028b313dead7c30f1e8048fb8
|
|
BLAKE2b-256 checksum How to use checksums |
e9deda1c7467e78231b65af311a9fe84ed74559a55d87cbb35a7140de224a202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / losswise-4.0-py2.py3-none-any.whl
| Download URL | losswise-4.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a77d4abee3e0d94243a0d1b072ed9c4e97d02ec288732dd0efcf0499e7ffa784
|
|
BLAKE2b-256 checksum How to use checksums |
9a8a93bf5bb61b886d3fdd482ea856fef3897e668795cf6b8369eeb02cdeecc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for losswise 4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.