Browse files

Added comments

  • Loading branch information...
1 parent 271ed13 commit 6d90bec73ac89a819a664481a04af6bf3dde3e51 @benhamner committed Apr 30, 2012
Showing with 8 additions and 3 deletions.
  1. +5 −2 make_predictions.m
  2. +3 −1 read_data.m
View
7 make_predictions.m
@@ -6,8 +6,11 @@ function make_predictions()
test_predictions = zeros(2100,39);
-matlabpool open 4
-options = statset('UseParallel','always');
+options = statset()
+
+%%% Uncomment the lines below to train models in parallel
+% matlabpool open 4
+% options = statset('UseParallel','always');
for p=1:10
prediction_offset = prediction_offsets(p);
View
4 read_data.m
@@ -1,5 +1,6 @@
function data = read_data()
+fprintf('Reading data ...\n');
fid = fopen('TrainingData.csv');
fgetl(fid);
@@ -8,7 +9,7 @@
row_cnt = 0;
while ~feof(fid)
- row_cnt = row_cnt + 1
+ row_cnt = row_cnt + 1;
line = fgetl(fid);
C = strread(line,'%s','delimiter',',');
for i=1:95
@@ -24,3 +25,4 @@
end
end
+fprintf('Read in %d rows\n', row_cnt);

0 comments on commit 6d90bec

Please sign in to comment.