From 72fe1a735c2e31ef1fe3150bb2f83cb5638e86dc Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 12 May 2012 11:27:51 +0200 Subject: get_products: Return the real price classification set as well --- get_products.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'get_products.m') diff --git a/get_products.m b/get_products.m index 11403dc..eed1c00 100644 --- a/get_products.m +++ b/get_products.m @@ -1,7 +1,8 @@ function [A,B] = get_products() load('-ascii', 'train_noheader.csv'); + load('-ascii', 'class_noheader.csv'); - A = zeros(42, 570); + A = zeros(42+14, 570); B = zeros(42, 570); for i = 1:42 begin = 570 * (i-1) + 1; @@ -9,4 +10,10 @@ function [A,B] = get_products() A(i,:) = train_noheader(begin:ende,3)'; B(i,:) = train_noheader(begin:ende,4)'; end + for i = 43:56 + begin = 570 * (i-42-1) + 1; + ende = begin + 569; + A(i,:) = class_noheader(begin:ende,3)'; + end + endfunction -- cgit