summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-12 11:57:19 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-12 11:57:19 +0200
commit75fae3057d735a8d08cc78a249d53c8ba62d92a8 (patch)
treec84c7490d9a3d515b3a3ea63d7436d879a645ee1
parent117675a64b7263c336dd2f8ab3889e42e7ceccf8 (diff)
downloaddmc-75fae3057d735a8d08cc78a249d53c8ba62d92a8.tar.gz
dmc-75fae3057d735a8d08cc78a249d53c8ba62d92a8.tar.bz2
dmc-75fae3057d735a8d08cc78a249d53c8ba62d92a8.zip
Add classification script
-rw-r--r--classify.m12
1 files changed, 12 insertions, 0 deletions
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')
+