Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

losswise-4.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

losswise-4.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file losswise-4.0.tar.gz.

File metadata

  • Download URL: losswise-4.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for losswise-4.0.tar.gz
Algorithm Hash digest
SHA256 59484e807e1c67c54c006ba2108e6251025d848028b313dead7c30f1e8048fb8
MD5 6da50535dd1e96b449958aa33875bb43
BLAKE2b-256 e9deda1c7467e78231b65af311a9fe84ed74559a55d87cbb35a7140de224a202

See more details on using hashes here.

File details

Details for the file losswise-4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: losswise-4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for losswise-4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a77d4abee3e0d94243a0d1b072ed9c4e97d02ec288732dd0efcf0499e7ffa784
MD5 8fae879c63dee62350a62ea628082d61
BLAKE2b-256 9a8a93bf5bb61b886d3fdd482ea856fef3897e668795cf6b8369eeb02cdeecc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page