Light weight utility to support Gage summaries
Project description
Gage Summary Support
gage-summary
is a very lightweight utility to support
Gage summaries. It has no install
time dependencies. If it requires a library, the requirement is tested
only as needed (e.g. display_summary
is specific to Jupyter
notebooks and requires the IPython
package).
Install the package:
pip install gage-summary
Write Gage summary from a Python script:
from gage_summary import write_summary
write_summary(
metrics={
"loss": 0.123,
"acc": 0.987
}
)
Display summary from a Jupter notebook cell:
from gage_summary import display_summary
display_summary(
metrics={
"loss": 0.123,
"acc": 0.987
}
)
In both cases, the library writes summary.json
to the current
directory when executed during a Gage run. Otherwise the summary is
just displayed to the user.
Note that Gage summaries are simply JSON formatted metrics and
attributes written to summary.json
during a run. You're free to
simply write this file yourself without the help of this library. This
library provides aesthetic improvements to summary reporting to users,
either printed to the console or displayed in a Jupyter notebook cell
output.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file gage_summary-0.1.1.tar.gz
.
File metadata
- Download URL: gage_summary-0.1.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd8a88b70bea04c1a1856aab24bd0950b451d4fb293f7c979d2e2ba1e6ca1b1 |
|
MD5 | 19e09bc942b2cf61e820a610e17bf74d |
|
BLAKE2b-256 | b4ce6527b866bedb1c0d85d4896d6b2898b5d12abdf10508ebbcca6283ccaf3c |
File details
Details for the file gage_summary-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gage_summary-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7be7097d033d8d15aa34c21085130c711a3854d98c1a97289627c966c67af4f3 |
|
MD5 | 26d38d4229f43994917e41cac05a3bf6 |
|
BLAKE2b-256 | fab18959b39b73270009c6feb9432ef6b4085fb76b21642bbd1a6df69535bb2e |