cymetric.evaluator - Evaluators

An evaluation context for metrics.

class cymetric.evaluator.Evaluator(db, write=True)

An evaluation context for metrics.

eval(metric, conds=None)

Evalutes a metric with the given conditions.

get_metric(metric)

Checks if metric is already in the registry; adds it if not.

cymetric.evaluator.eval(metric, db, conds=None, write=True)

Evalutes a metric with the given conditions in a database.

cymetric.evaluator.register_metric(cls)

Adds a metric to the registry.