function U04_eval_results

load results.mat;

% banana
load ../../../datasets/U04/U04_banana-ytest.dat;
fprintf('banana:\n');
l = loss01(U04_banana_ytest, sign(result.krr.banana_predicted_labels));
fprintf('  krr: %f\n', l);

% diabetis
load ../../../datasets/U04/U04_diabetis-ytest.dat;
fprintf('diabetis:\n');
l = loss01(U04_diabetis_ytest, sign(result.krr.diabetis_predicted_labels));
fprintf('  krr: %f\n', l);

% flare-solar
load ../../../datasets/U04/U04_flare-solar-ytest.dat;
fprintf('flare-solar:\n');
l = loss01(U04_flare_solar_ytest, sign(result.krr.flare_solar_predicted_labels));
fprintf('  krr: %f\n', l);

% image
load ../../../datasets/U04/U04_image-ytest.dat;
fprintf('image:\n');
l = loss01(U04_image_ytest, sign(result.krr.image_predicted_labels));
fprintf('  krr: %f\n', l);

% ringnorm
load ../../../datasets/U04/U04_ringnorm-ytest.dat;
fprintf('ringnorm:\n');
l = loss01(U04_ringnorm_ytest, sign(result.krr.ringnorm_predicted_labels));
fprintf('  krr: %f\n', l);

function l = loss01(y1, y2)
l = sum(y1 ~= y2)/length(y1);
