%Isolet Figure in "On Manifold Regularization"
%Author: Vikas Sindhwani (vikass@cs.uchicago.edu)
% June 2004

load results_isolet.mat % precision recall breakeven curves

% RLSC vs LapRLSC on Unlabeled Set
subplot(2,2,1);
plot(eurlsc,'r+-.','MarkerSize',8); hold on
plot(eulaprlsc,'b.-','MarkerSize',8);axis([0 30 13 28]);
xlabel('Labeled Speaker #');
ylabel('Error Rate (unlabeled set)');
title('RLS vs LapRLS');
legend('RLS','LapRLS',1);

% SVM,TSVM,LapSVM on Unlabeled Set
subplot(2,2,2);
plot(eusvm,'r+-.','MarkerSize',8); hold on
plot(eutsvm,'gx--','MarkerSize',8);hold on
plot(eulapsvm,'b.-','MarkerSize',8);axis([0 30 13 42]);
xlabel('Labeled Speaker #');
ylabel('Error Rates (unlabeled set)');
title('SVM vs TSVM vs LapSVM');
h=legend('SVM','TSVM','LapSVM',0);
%resize_legend(h,0.75);
% RLSC vs LapRLSC on Test Set
subplot(2,2,3);
plot(etrlsc,'r+-.','MarkerSize',8); hold on
plot(etlaprlsc,'b.-','MarkerSize',8);axis([0 30 19 35]);
xlabel('Labeled Speaker #');
ylabel('Error Rates (test set)');
title('RLS vs LapRLS');
legend('RLS','LapRLS',1);

% SVM,TSVM,LapSVM on Test Set
subplot(2,2,4);
plot(etsvm,'r+-.','MarkerSize',8); hold on
plot(ettsvm,'gx--','MarkerSize',8);hold on
plot(etlapsvm,'b.-','MarkerSize',8); axis([0 30 17 40]);
xlabel('Labeled Speaker #');
ylabel('Error Rates (test set)');
title('SVM vs TSVM vs LapSVM');
h=legend('SVM','TSVM','LapSVM',0);
%resize_legend(h,0.75);





