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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file experiment-replay-0.0.1.tar.gz
.
File metadata
- Download URL: experiment-replay-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17337ce10ac73614c94ff228a947f0a5df8aa47f0690fd78c62e433a4404ce23 |
|
MD5 | cbd64458e7903b3ac88a4a152aa6f3f3 |
|
BLAKE2b-256 | eb446720d4c27437d82edabbd09305c8a9527c37ed9e927283d7a653fab8863b |
File details
Details for the file experiment_replay-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: experiment_replay-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9237a03419eccde9984b76b3c2e28f2df2954b2addce298e14b78c47d1ec3f9e |
|
MD5 | 5a10ec2a6c8d47e67c070ff6739d4198 |
|
BLAKE2b-256 | 6783d3c5c9b774a79be95831d31ca041078bd3f4c71f6e58327255a9614a8eab |