A little api library for a TensorObserver server
Project description
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!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensor_observer-0.0.4.tar.gz.
File metadata
- Download URL: tensor_observer-0.0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f15841c3a5c54ccd5253be0426a13c70cbafadbecca54a6105cf24c097177f1
|
|
| MD5 |
142f103cbecefddb6c0bfe3be215589d
|
|
| BLAKE2b-256 |
74bf3716ca0d2d9dc15d88edb1cef925f8c8a1a1a3c1b94a5c926bc84c7b21a7
|
File details
Details for the file tensor_observer-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tensor_observer-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3d461c7fcbb6b1da7d1a11e633859e9e95ff7b9bcb81049c7cb6e505a08fead
|
|
| MD5 |
fac315168e9a1a4fe5d6444b1c3548c1
|
|
| BLAKE2b-256 |
a060aaca5eefe20e3f3e30b3bcfc04b267ea88ec06fe904c06c12896ce9a782c
|