Skip to main content

Organize Machine Learning Experiments

Project description

https://badge.fury.io/py/labml.svg https://pepy.tech/badge/labml

LabML

LabML is a library to track PyTorch experiments.

LabML keeps track of every detail of the experiments: source code, configurations, hyper-parameters, checkpoints, Tensorboard logs and other statistics. LabML saves all these automatically in a clean folder structure.

This is an example usage of Tracker

from labml import monit, tracker

for epoch in monit.loop(50):
for i in monit.iterate("Train", 10):
    time.sleep(1e-2)
    loss = 50 - epoch + np.random.randint(100) / 100
    tracker.save('loss.train', loss)

if (epoch + 1) % 5 == 0:
    logger.log()

Here’s the output,

Logger output

Create an experiment and save the configurations with a couple of lines of codes,

from labml import experiment

experiment.create(name='sin_wave')
experiment.configs(configs)
experiment.start()

View all your experiments locally with Dashboard:

Dashboard Screenshot

You can also monitor your experiments on Slack. When configured you will be receiving updates like following on a Slack thread. Join our Slack workspace to see samples.

Example chart update on slack

Installation

pip install labml

Citing LabML

If you use LabML for academic research, please cite the library using the following BibTeX entry.

@misc{labml,
 author = {Varuna Jayasiri, Nipun Wijerathne},
 title = {LabML: A library to organize machine learning experiments},
 year = {2020},
 url = {https://lab-ml.com/},
}

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

labml-0.4.30.tar.gz (59.5 kB view hashes)

Uploaded Source

Built Distribution

labml-0.4.30-py3-none-any.whl (89.3 kB view hashes)

Uploaded Python 3

Supported by

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