Skip to main content

Experiment tool for deep learning (PyTorch).

Project description

expon

Experiment tool for deep learning (PyTorch).

features

  1. Git check

    expon could automatically check the git status of current working directory.

    In each experiment, it first check the git status (raise expception if the working tree is not clean), and save the current git commit id for code restore and experiment reproduce.

  2. Experiment save.

    expon save the all the experment information including the defined metrics, config, experiment seed and perhaps metric visualization (like loss-epochs) in one place. The output supports markdown and html form.

demo


from expon import EXP, Params, Metric

# init. The save directory will be './EXP/run/demo/'
exp = EXP(workspace = 'run', exp_name='demo', exp_description='this is a demo')

# experiment params
params = expon.Params()
params.lamb = 1
params.learning_rate = 0.001
params.batch_size = 512

exp.set_params(params)

# experiment metrics
loss = expon.Metric('loss', 'epoch', draw=True)
acc = expon.Metric('acc', draw=True)
exp.add_metric(loss)
exp.add_metric(acc)

# expon will randomly set the random, numpy and torch seed in [0, 999].
exp.set_seed()

# assume 100 epochs
for i in range(0, 100):
    loss.update(1-0.01*i)
    acc.update(0.01*i)

# add addition information
exp.add_info({'final acc': 0.91})

# save the experiment to one place
exp.save(output_format='md', show_metric=False)

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

expon-0.0.7.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

expon-0.0.7-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file expon-0.0.7.tar.gz.

File metadata

  • Download URL: expon-0.0.7.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for expon-0.0.7.tar.gz
Algorithm Hash digest
SHA256 233d80508d7fbf6eb0f45690127aea624a7b6c8b9ea59edf838ca915418b595c
MD5 5d03bc815e5b0471fda484b7df543c03
BLAKE2b-256 79ba2e7641badbbf4ae99f650eeec1dfd1180aa876dc42d0bd30d7ff9554736e

See more details on using hashes here.

File details

Details for the file expon-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: expon-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for expon-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d0be8b9485522f248301508e3203064202145c257bcd62f12c428c1939a0a11b
MD5 fe2db9bd5ed846f3e75cc8eb43d70ad3
BLAKE2b-256 74205a2b5384701fb0c4d38297a391706d01485652d1ec3b92050634f1951eac

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