Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gage_summary-0.1.1.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

gage_summary-0.1.1-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page