tensor-observer
Simple PHP Server to keep track of current machine learning trainings.
- Install a little api library
pip install tensor-observer
- push the following files to your server and maintain the folder structure
- index.php
- php/*
- assets/*
- and create a "data" folder
- create an object of the API
from tensor-observer import TensorObserver
to_api = TensorObserver('http://localhost:8080')
- push your scalars during training by
to_api.scalar(self, scalar, run, tag, step, wall_time=None)
This method performs a http post request to save a scalar value from the training process.
Args:
- scalar: number that should be saved
- run: run identifier
- tag: tag of the scalar
- step: step id
- wall_time: if not specified, current time is taken
- wrap your script in a try catch block to push exceptions
to_api.exception(self, e, run, wall_time=None)
This method performs a http post request to notify that an exception happend.
Args:
- e: Exception object
- run: run identifier
- wall_time: if not specified, current time is taken
- send a end signal at the end to mark a run as terminated
to_api.end_signal(self, run, wall_time=None)
This method performs a http post request to notify that the run terminated
Args:
- run: run identifier
- wall_time: if not specified, current time is taken
- have fun!
Metadata
Release files for tensor-observer 0.0.4
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 |
|---|---|---|---|---|
| tensor_observer-0.0.4.tar.gz | 3.0 kB | Without provenance | Details for tensor_observer-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tensor_observer-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for tensor_observer-0.0.4-py3-none-any.whl |
Total release size: 18.7 kB
Release files / tensor_observer-0.0.4.tar.gz
| Download URL | tensor_observer-0.0.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f15841c3a5c54ccd5253be0426a13c70cbafadbecca54a6105cf24c097177f1
|
|
BLAKE2b-256 checksum How to use checksums |
74bf3716ca0d2d9dc15d88edb1cef925f8c8a1a1a3c1b94a5c926bc84c7b21a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / tensor_observer-0.0.4-py3-none-any.whl
| Download URL | tensor_observer-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3d461c7fcbb6b1da7d1a11e633859e9e95ff7b9bcb81049c7cb6e505a08fead
|
|
BLAKE2b-256 checksum How to use checksums |
a060aaca5eefe20e3f3e30b3bcfc04b267ea88ec06fe904c06c12896ce9a782c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for tensor-observer 0.0.4
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.