SDK for DetaMetrics TensorBoard alternative.
Project description
DetaMetricsSDK
A Python SDK for interacting with my TensorBoard alternative that runs on Deta Space.
Installation
pip install detametrics
Usage
All API classes need an URL ID, which can be gotten from the app UI.
They also need a Deta Space App API key, which can be gotten from...
- Click the 3 dots on the app on your Deta Space Canvas
- Click "Keys"
- Add an API Key, and input it in the box on the App UI and in your Python code as seen below
TensorFlow Callback
Requires Tensorflow to be installed.
from detametrics.tf import DetaMetricsTFCallback
# use in your keras model
model = ...
model.fit(
..., # other params here
callbacks=[DetaMetricsTFCallback("MY_URL_ID", "MY_API_KEY")]
)
Base API
Get your URL id from the UI on the Deta Space app.
from detametrics import DetaMetrics
metrics = DetaMetrics("MY_URL_ID", "MY_API_KEY")
metrics.clear() # WARNING: clears all past metrics
metrics.set("GraphName", "LineName", 0.1)
metrics.set("GraphName", "LineName", 123.45)
metrics.set("GraphName", "LineName", 78.9)
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
DetaMetrics-0.0.7.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for DetaMetrics-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b641c7660c14c9e9606a77939102196826f0da84c827ef92401ed88af5da8ff |
|
MD5 | 7f9e9e6726c87373809c3ac0bfdb4082 |
|
BLAKE2b-256 | 0fe6962d888e266ec96fe5ea6b8ce2d39669a3601ddf8016b0cec5e380fe99cf |