Changeset 296c33a for python


Ignore:
Timestamp:
May 23, 2005, 12:41:22 AM (20 years ago)
Author:
Paul Brossier <piem@altern.org>
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
Message:

update aubiocompare-onset to new evaluation function
update aubiocompare-onset to new evaluation function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubiocompare-onset

    r71f98f1 r296c33a  
    55print aubio.__LICENSE__ for the terms of use
    66
    7 or see LICENSE.txt in the numarray installation directory.
     7or see LICENSE.txt in the aubio installation directory.
    88"""
    99__LICENSE__ = """\
     
    8787        lres[i] = lres[i] + delay
    8888# compute errors types
    89 ok, bad, missed, total, hits = onset_roc(ltru,lres,tol)
     89orig, missed, merged, expc, bad, doubled = \
     90        onset_roc(ltru,lres,tol)
    9091
    9192# print results
     93#print "orig, missed, merged, expc, bad, doubled:"
    9294if 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))               
    9899else:
    99     print ok, bad, missed, total, hits
     100    print  orig, missed, merged, expc, bad, doubled
Note: See TracChangeset for help on using the changeset viewer.