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.

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

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

avilabs-ml-metrics-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file avilabs-ml-metrics-1.0.1.tar.gz.

File metadata

  • Download URL: avilabs-ml-metrics-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for avilabs-ml-metrics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 db79e2fd111f77ff57e5024a6bfe0ac778a9f9c955000e9a9a7527c349824fe6
MD5 741b8bb3d517a1fbb6cdd163a2b366fe
BLAKE2b-256 74cb2df1d382c62cd9ac126360defec3b6a0a8446fbbf66c94aa077de28eb45e

See more details on using hashes here.

Supported by

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