Changeset 336cf77 for python/bench-onset
- Timestamp:
- Dec 16, 2005, 5:34:00 AM (19 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:
- 50791b3
- Parents:
- 75139a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/bench-onset
r75139a9 r336cf77 18 18 self.mode = 'dual' 19 19 20 class taskonset(task):20 class benchonset(bench): 21 21 22 def pretty_print(self,values):23 for i in range(len(values)):24 print self.formats[i] % values[i],25 print26 27 22 def compute_results(self): 28 23 self.P = 100*float(self.expc-self.missed-self.merged)/(self.expc-self.missed-self.merged + self.bad+self.doubled) … … 158 153 respath = '/var/tmp/DB-testings' 159 154 160 taskonset = taskonset(datapath,respath)155 benchonset = benchonset(datapath,respath,checkres=True,checkanno=True) 161 156 162 taskonset.params = onset_parameters()157 benchonset.params = onset_parameters() 163 158 164 taskonset.titles = [ 'mode', 'thres', 'orig', 'expc', 'missd', 'mergd',159 benchonset.titles = [ 'mode', 'thres', 'orig', 'expc', 'missd', 'mergd', 165 160 'bad', 'doubl', 'corrt', 'GD', 'FP', 'GD-merged', 'FP-pruned', 166 161 'prec', 'recl', 'dist' ] 167 taskonset.formats = ["%12s" , "| %6s", "| %6s", "| %6s", "| %6s", "| %6s",162 benchonset.formats = ["%12s" , "| %6s", "| %6s", "| %6s", "| %6s", "| %6s", 168 163 "| %6s", "| %6s", "| %6s", "| %8s", "| %8s", "| %8s", "| %8s", 169 164 "| %6s", "| %6s", "| %6s"] 170 165 171 # taskonset.run_bench(modes=modes,thresholds=thresholds)172 taskonset.auto_learn(modes=modes)166 #benchonset.run_bench(modes=modes,thresholds=thresholds) 167 benchonset.auto_learn(modes=modes) 173 168 174 169 # gatherdata
Note: See TracChangeset
for help on using the changeset viewer.