Skip to main content

ML Metrics

A simple and flexible API to log metrics. Currently a metrics logger for logging to SQLite is implemented. Other backends can be implemented as needed.

Quickstart

Write Logs

from mlmetrics.sqlitemetrics.sqlite_metric import SqliteMetric

db = './metrics.db'
metric = SqliteMetric(db, name='fuel_gauge', labels={'model', 'trip'})
metric.log(model='toyota', trip='short', value=1.2)

Query Logs

from mlmetrics.sqlitemetrics.sqlite_metric import SqliteMetric

db = './metrics.db'
logs = metric.logs(start=1550554038.80172, end=1550554038.80265)
for row in logs:
    for fld in row.keys():
        print(fld, row[fld])

For more details see the Homepage

Metadata

Release files for avilabs-ml-metrics 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avilabs-ml-metrics 1.1.0
File Size Uploaded Provenance Actions
avilabs-ml-metrics-1.1.0.tar.gz 4.1 kB Without provenance Details for avilabs-ml-metrics-1.1.0.tar.gz

Release files / avilabs-ml-metrics-1.1.0.tar.gz

Download URL avilabs-ml-metrics-1.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2645bd0f5adb44267acf2609839673ea91f0e4dfb177773183121200dd21c587
BLAKE2b-256 checksum
How to use checksums
d5983399c84dd7842ad8969b112978aa38e0dd3e326f62b7f5d705cdd8962426
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for avilabs-ml-metrics 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page