Skip to main content

A package for simple experiment run tracing.

Project description

srspy

A package for simple research experiment tracing. Python 3.

pip install srspy

For example,

from srspy import RunTrace

# ...

r = RunTrace(name="train_model", data={
    "epochs": epochs,
    "batch_size": batch_size,
    "p": p,
    "λ": lamb,
    "optimizer": "adam",
    "lr": 0.0001,
    "gpu": GPU,
    "bias": bias,
}, log_dir="./runs")

# ...

for epoch in ...:
    # ...
    r.flush(data={"epoch_loss": epoch_loss})

# ...
r.close()

# later
l = RunTraceLog(r.log_file_path)
losses, timestamps = l.metric("epoch_loss")

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

srspy-0.0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

srspy-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file srspy-0.0.3.tar.gz.

File metadata

  • Download URL: srspy-0.0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for srspy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 84501d22a4097f936e0ae67f109d478ea2a41cc0ab0ce303f16c5609dcdc2208
MD5 727894de4b268b3665a4dc7eed0e777d
BLAKE2b-256 fc572e0f338ab880ce38fef5d5685d9bc20f965144926fa0e9b8c07c83c31afe

See more details on using hashes here.

File details

Details for the file srspy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: srspy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for srspy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ced175d5d86c13f701888e878286dee19f066cafb8ae2c87b362064a786acb
MD5 9ab1cb2aeebb19587f1f13bcc5a35f3a
BLAKE2b-256 6a9f1422a0f9c8d8daa503d87f9b31e81bd7e74df4122c7b2fc5904ae0796d82

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