Skip to main content

Metrics for Machine Learning

Project description

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.


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

Project details

Download files

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

Files for avilabs-ml-metrics, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size avilabs-ml-metrics-1.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page