Dainik
Dainik is a client library for NimbleBox.ai LMAO (Logging, Monitoring, Alerts and Observability) service.
Usage
from dainik import Dainik
# initialise the client object
dk = Dainik()
# initialise the run
dk.init(
"california",
config = {
"model_name": "qual",
"config": {
"batch_size": 32,
"n_steps": n_steps,
"optimizer": "adam",
}
},
)
for epoch in range(10):
log = {
"loss": 1 / epoch,
"accuracy": epoch,
}
dk.log(log, step = epoch)
# optionally log metrics directly
dk.metrics.f1_score(
x = [[1, 2, 3]],
y = [[1, 2, 1]],
step = epoch
)
# log files for tracking as well, wildcards work as well!
dk.save_files([f"./checkpoint-{epoch}/*"])
dk.end() # send signal to sleep
Dev
Due to the current structure the source code for this is only available for NimbleBox.ai engineers. This is spun out of a much larger monorepo which contains the logic for server and client together which helps us work on this faster.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lmao-1.18.tar.gz
(16.5 kB
view details)
File details
Details for the file lmao-1.18.tar.gz.
File metadata
- Download URL: lmao-1.18.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ce42ac163b33477539d87fa3f7569f5492cb6152528503a0e60853ef0315264
|
|
| MD5 |
6dcf5989e728fd20d187aa40c927ab59
|
|
| BLAKE2b-256 |
5df831dd090edcdbb04e6a7d30e341c25cb1c05edc72b4f69b555f7fa28b2661
|