comparison experiments/scripts/cnbh-syllables/results_plotting/plot_all_hmm_param_results.m @ 99:be3bbd8b3fcd

- Plotting scripts
author tomwalters
date Tue, 07 Sep 2010 01:14:22 +0000
parents
children
comparison
equal deleted inserted replaced
98:7410390dce8c 99:be3bbd8b3fcd
1 work_paths = {'nap_2/', 'mfcc/'};
2 %colors = jet(length(work_paths));
3 colors=[0 0 0; 1 0 0];
4 figure;
5
6 for type=1:length(work_paths)
7 work_path = work_paths{type};
8 %work_path = 'mfcc/';
9 nap_results = load([work_path 'final_results.txt']);
10
11 states_set = min(nap_results(:,1))+1:2:max(nap_results(:,1));
12 mix_set = min(nap_results(:,2))+1:2:max(nap_results(:,2));
13 total_lines = length(states_set) * length(mix_set);
14
15
16 line_names = cell(total_lines,1);
17 line_styles = {'-', '--', ':', '-.'};
18 marker_styles = {'+','o','*','.','x','s','d','^'};
19
20 %colors = jet(length(mix_set));
21
22 val = 1;
23 for states = states_set
24 line_style = line_styles{1 + mod(states, length(states_set))};
25
26 for components = mix_set
27 marker_style = marker_styles{1 + mod(components, length(mix_set))};
28 line_names{val,1} = [num2str(states) ' states ' num2str(components) ' components'];
29 nr = nap_results(nap_results(:,1) == states, :);
30 nr = nr(nr(:,2) == components, :);
31 nr = sortrows(nr,3);
32 plot(nr(:,3), nr(:,4), 'Color', colors(type, :), 'Linewidth', 1, 'LineStyle', line_style, 'Marker', marker_style);
33 hold on;
34 val = val + 1;
35 end
36 end
37
38 xlabel('Training Iterations');
39 ylabel('Percent Correct');
40 ylim([50 100]);
41 %ylim([86.9 93.3]);
42 xlim([4.5 15.5]);
43 set(gca, 'XTick', 5:15);
44 end
45 legend(line_names, 'Location', 'EastOutside');