From e4176f3a359de0887d791a8f06f73c7f2b9160a8 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 30 Jul 2014 16:14:49 +0200 Subject: remove debug printing and fix seed for testing --- src/msvmmaj_train.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/msvmmaj_train.c') diff --git a/src/msvmmaj_train.c b/src/msvmmaj_train.c index 58f0e81..71a24df 100644 --- a/src/msvmmaj_train.c +++ b/src/msvmmaj_train.c @@ -77,17 +77,6 @@ void msvmmaj_optimize(struct MajModel *model, struct MajData *data) L = msvmmaj_get_loss(model, data, ZV); Lbar = L + 2.0*model->epsilon*L; - printf("L: %15.16f\n", L); - - printf("V:\n"); - print_matrix(model->V, m+1, K-1); - - printf("Q:\n"); - print_matrix(model->Q, n, K); - - printf("H:\n"); - print_matrix(model->H, n, K); - while ((it < MAX_ITER) && (Lbar - L)/L > model->epsilon) { // ensure V contains newest V and Vbar contains V from @@ -99,7 +88,7 @@ void msvmmaj_optimize(struct MajModel *model, struct MajData *data) Lbar = L; L = msvmmaj_get_loss(model, data, ZV); - if (it%1 == 0) + if (it%100 == 0) note("iter = %li, L = %15.16f, Lbar = %15.16f, " "reldiff = %15.16f\n", it, L, Lbar, (Lbar - L)/L); it++; -- cgit v1.2.3