- Timestamp:
- May 23, 2005, 12:41:22 AM (20 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 2a33cc9
- Parents:
- 71f98f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubiocompare-onset
r71f98f1 r296c33a 5 5 print aubio.__LICENSE__ for the terms of use 6 6 7 or see LICENSE.txt in the numarrayinstallation directory.7 or see LICENSE.txt in the aubio installation directory. 8 8 """ 9 9 __LICENSE__ = """\ … … 87 87 lres[i] = lres[i] + delay 88 88 # compute errors types 89 ok, bad, missed, total, hits = onset_roc(ltru,lres,tol) 89 orig, missed, merged, expc, bad, doubled = \ 90 onset_roc(ltru,lres,tol) 90 91 91 92 # print results 93 #print "orig, missed, merged, expc, bad, doubled:" 92 94 if vmode=='verbose': 93 print '( ok bad missed ) tot / hits \t', 94 print '(', ok, bad, missed, ')', total, '/', hits, 95 print '\t', 96 print 100*float(ok)/(ok+missed), '%GD\t', 97 print 100*float(bad)/(hits+bad), '%FP\t' 95 print "GD %2.8f\t" % (100*float(orig-missed-merged)/(orig)), 96 print "FP %2.8f\t" % (100*float(bad+doubled)/(orig)) , 97 print "GD-merged %2.8f\t" % (100*float(orig-missed)/(orig)) , 98 print "FP-pruned %2.8f\t" % (100*float(bad)/(orig)) 98 99 else: 99 print ok, bad, missed, total, hits100 print orig, missed, merged, expc, bad, doubled
Note: See TracChangeset
for help on using the changeset viewer.