clear, close all
addpath(genpath(pwd));


%boxplots
load ../data/intermediate/multitests_results_1/eval_metrics.mat

hfig=figure;set(hfig,'color','w');
b1=boxplot(rmse_train,'colors','b','symbol','');hold on;
b2=boxplot(rmse_test,'colors','r','symbol',''); hold on;
set(b1,'linewidth',2);
set(b2,'linewidth',2);
plot(median(rmse_train),':o','Markersize',5.0,'Color','b','MarkerFaceColor','b','linewidth',2);hold on;
plot(median(rmse_test),':o','Markersize',5.0,'Color','r','MarkerFaceColor','r','linewidth',2);
legend('Training','Test');
ylabel('RMSE','FontSize',20,'FontWeight','bold');
ylim([0.01,0.036]);
set(gca,'FontSize',20,'FontWeight','bold','linewidth',2,'xtick',1:5,'xticklabel',{'W1','W2','W3','W4','W5'});

hfig=figure;set(hfig,'color','w');
b1=boxplot(r2_train,'colors','b','symbol','');hold on;
b2=boxplot(r2_test,'colors','r','symbol',''); hold on;
set(b1,'linewidth',2);
set(b2,'linewidth',2);
plot(median(r2_train),':o','Markersize',5.0,'Color','b','MarkerFaceColor','b','linewidth',2);hold on;
plot(median(r2_test),':o','Markersize',5.0,'Color','r','MarkerFaceColor','r','linewidth',2);
legend('Training','Test');
ylabel('R^2','FontSize',20,'FontWeight','bold');
ylim([0.5,1]);
set(gca,'FontSize',20,'FontWeight','bold','linewidth',2,'xtick',1:5,'xticklabel',{'W1','W2','W3','W4','W5'});


