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


Release history Release notifications

History Node

3.1

History Node

3.0

History Node

2.9

History Node

2.8

History Node

2.7

History Node

2.6

History Node

2.5

History Node

2.4

History Node

2.3

History Node

2.2

History Node

2.1

History Node

2.0

History Node

1.9

History Node

1.8

History Node

1.7

History Node

1.6

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.99

History Node

0.98

History Node

0.97

History Node

0.96

History Node

0.95

History Node

0.94

History Node

0.93

History Node

0.92

This version
History Node

0.91

History Node

0.90

History Node

0.88

History Node

0.87

History Node

0.86

History Node

0.85

History Node

0.84

History Node

0.82

History Node

0.81

History Node

0.9

History Node

0.8

History Node

0.7

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
losswise-0.91-py2.py3-none-any.whl (5.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Oct 13, 2017
losswise-0.91.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Oct 13, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page