Mercurial > hg > aimc
view experiments/scripts/cnbh-syllables/results_plotting/plot_all_hmm_param_results.m @ 626:586b0677aae8
Fourth revision of Alex Brandmeyer's C++ implementation. Fixed more style issues, changed AGC structures to vectors, replaced FloatArray2d with vector<FloatArray>, implemented first tests using GTest to verify coefficients and monaural output against Matlab values (stored in aimc/carfac/test_data/). To run tests, change the path stored in carfac_test.h in TEST_SRC_DIR. Added CARFAC_GenerateTestData to the Matlab branch, fixed stage indexing in CARFAC_Cross_Couple.m to reflect changes in AGCCoeffs and AGCState structs.
author | alexbrandmeyer |
---|---|
date | Wed, 22 May 2013 21:30:02 +0000 |
parents | be3bbd8b3fcd |
children |
line wrap: on
line source
work_paths = {'nap_2/', 'mfcc/'}; %colors = jet(length(work_paths)); colors=[0 0 0; 1 0 0]; figure; for type=1:length(work_paths) work_path = work_paths{type}; %work_path = 'mfcc/'; nap_results = load([work_path 'final_results.txt']); states_set = min(nap_results(:,1))+1:2:max(nap_results(:,1)); mix_set = min(nap_results(:,2))+1:2:max(nap_results(:,2)); total_lines = length(states_set) * length(mix_set); line_names = cell(total_lines,1); line_styles = {'-', '--', ':', '-.'}; marker_styles = {'+','o','*','.','x','s','d','^'}; %colors = jet(length(mix_set)); val = 1; for states = states_set line_style = line_styles{1 + mod(states, length(states_set))}; for components = mix_set marker_style = marker_styles{1 + mod(components, length(mix_set))}; line_names{val,1} = [num2str(states) ' states ' num2str(components) ' components']; nr = nap_results(nap_results(:,1) == states, :); nr = nr(nr(:,2) == components, :); nr = sortrows(nr,3); plot(nr(:,3), nr(:,4), 'Color', colors(type, :), 'Linewidth', 1, 'LineStyle', line_style, 'Marker', marker_style); hold on; val = val + 1; end end xlabel('Training Iterations'); ylabel('Percent Correct'); ylim([50 100]); %ylim([86.9 93.3]); xlim([4.5 15.5]); set(gca, 'XTick', 5:15); end legend(line_names, 'Location', 'EastOutside');