Attachment 'U04_eval_results.m'

Download

   1 function U04_eval_results
   2 
   3 load results.mat;
   4 
   5 % banana
   6 load ../../../datasets/U04/U04_banana-ytest.dat;
   7 fprintf('banana:\n');
   8 l = loss01(U04_banana_ytest, sign(result.krr.banana_predicted_labels));
   9 fprintf('  krr: %f\n', l);
  10 
  11 % diabetis
  12 load ../../../datasets/U04/U04_diabetis-ytest.dat;
  13 fprintf('diabetis:\n');
  14 l = loss01(U04_diabetis_ytest, sign(result.krr.diabetis_predicted_labels));
  15 fprintf('  krr: %f\n', l);
  16 
  17 % flare-solar
  18 load ../../../datasets/U04/U04_flare-solar-ytest.dat;
  19 fprintf('flare-solar:\n');
  20 l = loss01(U04_flare_solar_ytest, sign(result.krr.flare_solar_predicted_labels));
  21 fprintf('  krr: %f\n', l);
  22 
  23 % image
  24 load ../../../datasets/U04/U04_image-ytest.dat;
  25 fprintf('image:\n');
  26 l = loss01(U04_image_ytest, sign(result.krr.image_predicted_labels));
  27 fprintf('  krr: %f\n', l);
  28 
  29 % ringnorm
  30 load ../../../datasets/U04/U04_ringnorm-ytest.dat;
  31 fprintf('ringnorm:\n');
  32 l = loss01(U04_ringnorm_ytest, sign(result.krr.ringnorm_predicted_labels));
  33 fprintf('  krr: %f\n', l);
  34 
  35 function l = loss01(y1, y2)
  36 l = sum(y1 ~= y2)/length(y1);

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2011-04-11 08:52:02, 125.8 KB) [[attachment:ML_Praktikum_U01.pdf]]
  • [get | view] (2011-04-15 15:04:29, 123.8 KB) [[attachment:ML_Praktikum_U01_en.pdf]]
  • [get | view] (2011-04-27 10:01:42, 138.9 KB) [[attachment:ML_Praktikum_U02.pdf]]
  • [get | view] (2011-04-27 16:55:08, 133.8 KB) [[attachment:ML_Praktikum_U02_en.pdf]]
  • [get | view] (2011-05-16 07:30:50, 114.1 KB) [[attachment:ML_Praktikum_U03.pdf]]
  • [get | view] (2011-05-18 14:09:25, 112.6 KB) [[attachment:ML_Praktikum_U03_en.pdf]]
  • [get | view] (2011-06-06 07:07:17, 148.2 KB) [[attachment:ML_Praktikum_U04.pdf]]
  • [get | view] (2011-06-06 13:15:58, 155.6 KB) [[attachment:ML_Praktikum_U04_en.pdf]]
  • [get | view] (2011-07-04 06:20:14, 114.9 KB) [[attachment:ML_Praktikum_U05_en.pdf]]
  • [get | view] (2011-04-04 12:08:51, 112.8 KB) [[attachment:Praktikum_ML_Info.pdf]]
  • [get | view] (2011-04-15 15:05:23, 1.2 KB) [[attachment:U01_test_distmat.m]]
  • [get | view] (2011-04-15 15:05:28, 1.0 KB) [[attachment:U01_test_mydet.m]]
  • [get | view] (2011-04-27 10:02:35, 4053.5 KB) [[attachment:U01_usps.mat]]
  • [get | view] (2011-04-27 10:06:57, 39.4 KB) [[attachment:U02_tests.zip]]
  • [get | view] (2011-05-18 14:10:45, 6.3 KB) [[attachment:U03_2gaussians.dat]]
  • [get | view] (2011-05-18 14:10:50, 15.6 KB) [[attachment:U03_5gaussians.dat]]
  • [get | view] (2011-06-06 06:34:10, 8.9 KB) [[attachment:U03_tests.zip]]
  • [get | view] (2011-06-06 10:42:47, 1018.4 KB) [[attachment:U04_datasets.tar.gz]]
  • [get | view] (2011-06-06 10:43:33, 1.0 KB) [[attachment:U04_eval_results.m]]
  • [get | view] (2011-06-06 10:43:38, 1.1 KB) [[attachment:U04_test_CV_krr.m]]
  • [get | view] (2011-07-04 06:20:27, 6.4 KB) [[attachment:U05_datasets.zip]]
  • [get | view] (2011-04-27 10:02:11, 60.1 KB) [[attachment:fishbowl.mat]]
  • [get | view] (2011-05-16 09:55:17, 2426.3 KB) [[attachment:fishbowl_swissroll_correct.mat]]
  • [get | view] (2011-04-27 10:02:16, 22.7 KB) [[attachment:flatroll.mat]]
  • [get | view] (2011-04-11 08:47:36, 371.8 KB) [[attachment:guide.pdf]]
  • [get | view] (2011-04-27 10:08:04, 496.0 KB) [[attachment:lle_talk.pdf]]
  • [get | view] (2011-04-27 10:02:20, 45.3 KB) [[attachment:swissroll.mat]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.