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.

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.1.tar.gz (14.7 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.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trainlog-0.1.tar.gz
  • Upload date:
  • Size: 14.7 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.1.tar.gz
Algorithm Hash digest
SHA256 22492d9c6c4c0ac4e5bec8f5e2f8320f8cb110edca84d3211962639fa419b6a9
MD5 2b1636e40af1fc25f7536190beeb5d0e
BLAKE2b-256 0702c7ecc9916e002701f18ae985f48d1aa87e7e1fe23077073eff82f96de09f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trainlog-0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53c2f39911ef1a2d535edcf4aec97c926b770a825051670b9d2ada54bec6cbfe
MD5 070f0201c621ff75669264a9ec9febc8
BLAKE2b-256 664e9d469063cb7d5540a762885808fdda7805de477fae93b68ee17321ebfdc0

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