tempo_eval.PE1
- tempo_eval.PE1 = PE1
Metric.
Structured collection of logic and injected functions for different metrics.
- Example
>>> from tempo_eval import OE1, read_reference_annotations, read_estimate_annotations >>> gt_ref = read_reference_annotations('giantsteps_tempo', validate=False) >>> gt_est = read_estimate_annotations('giantsteps_tempo', validate=False) # evaluate estimates using the reference values and Metric OE1: >>> res = OE1.eval_annotations(gt_ref['tempo'], gt_est['tempo']) # show result of ref '1.0' and est 'davies2009/mirex_qm_tempotracker' # for file '3453642.LOFI.jams': >>> res['1.0']['davies2009/mirex_qm_tempotracker']['3453642.LOFI.jams'] [-0.02271693594286862]