From a07e692d4ea69466a26c5cbdb3176046b71d761e Mon Sep 17 00:00:00 2001 From: Calvin Date: Mon, 10 Jun 2013 14:35:42 -0400 Subject: finish gzip decoding, YOU MUST retrain your api --- src/c/quikr_train.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/quikr_train.c') diff --git a/src/c/quikr_train.c b/src/c/quikr_train.c index 767ac7d..c728a2c 100644 --- a/src/c/quikr_train.c +++ b/src/c/quikr_train.c @@ -168,10 +168,10 @@ int main(int argc, char **argv) { trained_matrix[y] = trained_matrix[y] / row_sum; } - for( y = 0; y < width; y++) { + for( y = 0; y < (width - 1); y++) { gzprintf(output, "%.10f\t", trained_matrix[y]); } - gzprintf(output, "\n"); + gzprintf(output, "%.10f\n", trained_matrix[width]); } free(trained_matrix); -- cgit v1.2.3