forked from lailsonbm/pca_reconstruction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart_correlation.m
56 lines (42 loc) · 2.55 KB
/
chart_correlation.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
load_paths;
load_pcs;
clear_errors;
reset_weights;
calculate_errors;
%%
disp('Generating positive partial correlation chart...')
plot_error_correlation(pgp_ped_errors, pep_ped_errors, pgp_non_errors, pep_non_errors, ...
'Positive Partial Error Distribution', 'grayscale error', 'edge error', sprintf('data/%s/charts/k=%d/error_correlation_positive.pdf', current_set, k));
close;
disp('Generating negative correlation chart...')
plot_error_correlation(pgn_ped_errors, pen_ped_errors, pgn_non_errors, pen_non_errors, ...
'Negative Partial Error Distribution', 'grayscale error', 'edge error', sprintf('data/%s/charts/k=%d/error_correlation_negative.pdf', current_set, k));
close;
disp('Generating total correlation by type chart...');
plot_error_correlation(gray_ped_errors, edge_ped_errors, gray_non_errors, edge_non_errors, ...
'Total Error Distribution', 'grayscale error', 'edge error', sprintf('data/%s/charts/k=%d/error_correlation_total_by_type.pdf', current_set, k));
close;
%%
disp('Generating grayscale partial correlation chart...')
plot_error_correlation(pgp_ped_errors, pgn_ped_errors, pgp_non_errors, pgn_non_errors, ...
'Grayscale Partial Error Distribution', 'positive error', 'negative error', sprintf('data/%s/charts/k=%d/error_correlation_grayscale.pdf', current_set, k));
close;
disp('Generating edge partial correlation chart...')
plot_error_correlation(pep_ped_errors, pen_ped_errors, pep_non_errors, pen_non_errors, ...
'Edge Partial Error Distribution', 'positive error', 'negative error', sprintf('data/%s/charts/k=%d/error_correlation_edge.pdf', current_set, k));
close;
disp('Generating total correlation by class chart...');
plot_error_correlation(pos_ped_errors, neg_ped_errors, pos_non_errors, neg_non_errors, ...
'Total Error Distribution', 'positive error', 'negative error', sprintf('data/%s/charts/k=%d/error_correlation_total_by_class.pdf', current_set, k));
close;
%%
load_weights;
calculate_errors;
disp('Generating weighted total correlation by type chart...');
plot_error_correlation(gray_ped_errors, edge_ped_errors, gray_non_errors, edge_non_errors, ...
'Weighted Total Error Distribution', 'grayscale error', 'edge error', sprintf('data/%s/charts/k=%d/error_correlation_total_weighted_by_type.pdf', current_set, k));
close;
disp('Generating weighted total correlation by class chart...');
plot_error_correlation(pos_ped_errors, neg_ped_errors, pos_non_errors, neg_non_errors, ...
'Weighted Total Error Distribution', 'grayscale error', 'edge error', sprintf('data/%s/charts/k=%d/error_correlation_total_weighted_by_class.pdf', current_set, k));
close;