Diary to create notebooks and store intermediate results and figures
Project description
DiaryPy
Create a new diary
diary = Diary(name='world', path='hello', overwrite=False)
Create all the notebooks that you want to use
diary.add_notebook('validation')
diary.add_notebook('test')
Store your results in the different notebooks
diary.add_entry('validation', ['accuracy', 0.3])
diary.add_entry('validation', ['accuracy', 0.5])
diary.add_entry('validation', ['accuracy', 0.9])
diary.add_entry('test', ['First test went wrong', 0.345, 'label_1'])
Add some image
image = Image.new(mode="1", size=(16,16), color=0)
diary.save_image(image, filename='test_results')
Resulting files
The files that are generated after executing the previous lines are
hello/
└── world
├── description.txt
├── images
│ └── test_results_4.png
├── test.csv
└── validation.csv
the content of the files is
description.txt
Date: 2015-10-22 17:43:19.764797
Name : world
Path : hello/world
Overwrite : False
Image_format : png
validation.csv
1,1,|2015-10-22|,|17:43:19.765404|,|accuracy|,0.3
2,2,|2015-10-22|,|17:43:19.765509|,|accuracy|,0.5
3,3,|2015-10-22|,|17:43:19.765576|,|accuracy|,0.9
test.csv
4,1,|2015-10-22|,|17:43:19.765657|,|First test went wrong|,0.345,|label_1|
Unittest
python -m unittest discover diarypy
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
diarypy-0.4.2.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file diarypy-0.4.2.tar.gz
.
File metadata
- Download URL: diarypy-0.4.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726d6fb6bfccc7153110d82ffb536d42b2358a7f39187a2ec153a929b3ad3d57 |
|
MD5 | 68cd6619f53da2333f42e9e32c19f572 |
|
BLAKE2b-256 | f2d0fe11d6398b4090f6d5d941ac882da53c2627d1ed7f3dda37c40f6847195c |
File details
Details for the file diarypy-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: diarypy-0.4.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c3915f4e382b050c2f60275249817921e7015f5b6df031777004e7288f9a93 |
|
MD5 | d86d58635343d7711975ac9130384930 |
|
BLAKE2b-256 | 047a3749a4cbaa984264a984ed733fafbda5598a258cf3cefac2c0815d27c3d9 |