Develocorder
Develocorder is a simple live value plotter for Python3 using Matplotlib. It is intended to give insights into the training of machine learning models / reinforcement learning agents with only minimal effort to add to existing code.
Installation
$ pip install develocorder
Simple Example
# initialize once
set_recorder(my_value=LinePlot())
# add values to plot from anywhere in code
for _ in range(10):
record(my_value=random())
Result
Fancy Example
Some more features:
# axis labels
set_recorder(labeled=LinePlot(xlabel="Episode", ylabel="Score"))
# additional filtered values (window filter)
set_recorder(filtered=FilteredLinePlot(filter_size=50))
# maximum history length
set_recorder(detail=LinePlot(max_length=50))
# downsampled values (record mean of every filter_size values)
set_recorder(downsampled=DownsampledLinePlot(filter_size=5))
# multiple curves for recording 1d-array values
set_recorder(multiple=FilteredLinePlot(filter_size=50))
# heatmap for recording 1d-array values
set_recorder(heatmap=Heatmap())
# minimum update period (limit update rate for better performance)
set_update_period(0.5) # [seconds]
# set number of columns
set_num_columns(2)
Jupyter notebook
For use in a Jupyter notebook use the %matplotlib notebook backend. As of now you cannot rerun the cell which is showing the plot without restarting the notebook, otherwise the plot will disappear.
TODOs
- document how to extend
- better support for jupyter notebook
- add new plot types
- persistent storage/loading of log
Metadata
Release files for develocorder 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| develocorder-0.4.0.tar.gz | 5.3 kB | Without provenance | Details for develocorder-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| develocorder-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for develocorder-0.4.0-py3-none-any.whl |
Total release size: 12.6 kB
Release files / develocorder-0.4.0.tar.gz
| Download URL | develocorder-0.4.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a82eb18bac92bbbcc3b9d336853a45746fe401d21c124c1282b5bb1a3291e87f
|
|
BLAKE2b-256 checksum How to use checksums |
ed11cbcd77939baf0b60f0b5166b82bb6b909e385767e24ba0f0a5d24ddf7038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / develocorder-0.4.0-py3-none-any.whl
| Download URL | develocorder-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdbaf68c5079c97d046db0c7e7e34a06538aa66ae7862c0cf52f44d5e669efaa
|
|
BLAKE2b-256 checksum How to use checksums |
cdc99c3e16f75f9d27d82ecab64de757fbb0b8a5536a0398ab04b8655df45c9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Security for develocorder 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.