Skip to main content

A simple logging library, designed for deep learning

Project description

Trainlog

A simple logging library, designed for deep learning.

Trainlog's aim is to make it easy to create a single file containing all key info about a training run. We prioritize convenience and ease of use over efficiency.

pip install trainlog

Example

Code to generate the log looks like this:

import trainlog as L

with L.logger.open("log.jsonl", lr=0.01) as logger:
    logger.add("step", loss=10)
    logger.add("step", loss=5)
    logger.add("step", loss=2.5)

You can inspect the log using standard tools gzip -cd log.jsonl.gz | jq -Cc . | less -R.

Code to analyse the log looks like this:

import trainlog as L
import trainlog.ops as O

log = L.logs.open("log.jsonl.gz")
log = log.apply(O.header("lr"), O.count("step"))
df = log["step"].to_pandas()
print(df)

See also

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

trainlog-0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

trainlog-0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file trainlog-0.2.tar.gz.

File metadata

  • Download URL: trainlog-0.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for trainlog-0.2.tar.gz
Algorithm Hash digest
SHA256 6a87d5f5709d35c3927196f6bd48fb303c0f4b8fa978c83854b2a8ed8633602c
MD5 afddc216485c0d2f73401cce9d08a05c
BLAKE2b-256 9b62894bd9b0504ed1e8a39b13a952c1e43a27f6dad836028a19ddf6d1d09bba

See more details on using hashes here.

File details

Details for the file trainlog-0.2-py3-none-any.whl.

File metadata

  • Download URL: trainlog-0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for trainlog-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0490a3b5832e4cfe4c6d1b36d2075a003014041526e87c209be383b163f616
MD5 f7e25257c3526be292cb5865712f2918
BLAKE2b-256 42b53c2591e2d04433eb83659928adae0dbecadc1165c6de669aceaaccbe6263

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