changeset 424:f405ead2736f

- Updated results plotting
author tomwalters
date Mon, 01 Nov 2010 01:29:33 +0000
parents b36762259dc6
children 1402e0d3c064
files trunk/experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py	Mon Nov 01 00:31:00 2010 +0000
+++ b/trunk/experiments/scripts/cnbh-syllables/results_plotting/plot_munged_results.py	Mon Nov 01 01:29:33 2010 +0000
@@ -16,11 +16,14 @@
     results.setdefault(values[3],dict())
     results[values[3]].setdefault(values[0], dict())
     results[values[3]][values[0]].setdefault(values[1], dict())
+    results[values[3]][values[0]][values[1]].setdefault(int(values[4]), dict())
+    results[values[3]][values[0]][values[1]][int(values[4])].setdefault(int(values[5]), dict())
+    results[values[3]][values[0]][values[1]][int(values[4])][int(values[5])].setdefault(int(values[6]), dict())
     if values[2] == 'clean':
-       snr = 40
+       snr = 50
     else:
        snr = int(values[2])
-       results[values[3]][values[0]][values[1]][snr] = float(values[4])
+       results[values[3]][values[0]][values[1]][int(values[4])][int(values[5])][int(vlues[6])][snr] = float(values[7])
 #    results[values[3]].append((values[1],values[2],values[2],values[4]))
 
 ax = plt.subplot(111)
@@ -28,9 +31,12 @@
 train_set = 'inner'
 lines = []
 labels = []
+hmm_iterations = 2
+hmm_states = 4
+hmm_components = 4
 for feature_type in ('mfcc', 'mfcc_vtln', 'aim'):
   for feature_subtype in results[train_set][feature_type].keys():
-    this_line = results[train_set][feature_type][feature_subtype].items()
+    this_line = results[train_set][feature_type][feature_subtype][hmm_states][hmm_components][hmm_iterations].items()
     this_line.sort(cmp=lambda x,y: x[0] - y[0])
     xs, ys = zip(*this_line)
     xs = list(xs)