From 75fae3057d735a8d08cc78a249d53c8ba62d92a8 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 12 May 2012 11:57:19 +0200 Subject: Add classification script --- classify.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 classify.m diff --git a/classify.m b/classify.m new file mode 100644 index 0000000..1353e6a --- /dev/null +++ b/classify.m @@ -0,0 +1,12 @@ +run_tests; + +train_data = q(1:42, :); +pred_list_class = {}; +for i = 1:num_methods + pred_list_class{i} = pred_methods(i).func(pall, train_data); +end + +opt_class_data = opt_pred(method_idx, pred_list_class); +plot(sum(normalize(pall)') + 5000, '-og', sum(pall'), '-om', sum(q'), '-ok', + 43:56, sum(opt_class_data'), '-ok', 29:42, sum(opt_data'), '-om') + -- cgit