Skip to main content

Make running, replaying experiments easier either on Pytorch or Tensorflow

Project description

Experiment replay

Description

Simple utils to record the commands you run. It was developped with ML experiments in mind. Where you often tweak your code just a little before launching an experiment and when after a few days/weeks you come back you want to know how you achieved such amazing results you don't remember and it takes a long time to achieve again.

This library is extremely simple. You can't run any experiment that is not committed so you have a commit to know what was changed and why. It also stores the exact command line you used so that configuration hacking is also remembered. It uses the git commit message to store that data so it does not require any external tool.

Install

pip install experiment_replay

Usage

It's simple to enable an experiment just do in your train.py file for instance

import experiment_replay

## My code

if __name__ == "__main__":
    experiment_replay.setup()
    my_training_loop()

Then when you actual run your training let's say python train.py --batch-size=16.

You can then do:

python -m experiment_replay to get the list of all the commands you ran with experiment_replay enabled.

Experiments :
Date                       Id     Commit                                   Command             
2019-05-13 14:53:35.410538 472a12 f9dfe80125ea4856ce368270bce3aeb980829b2c python example.py  

You can they replay it with python -m experiment_replay 472a12

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

experiment-replay-0.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

experiment_replay-0.0.1-py3-none-any.whl (6.8 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