diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2014-07-30 16:02:29 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2014-07-30 16:02:29 +0200 |
| commit | 19034b7ddeac1dd5de05c7a8fd34a771dddde0fb (patch) | |
| tree | f9baec1ee9a3350879d067242ece34ec81ef246e /src/msvmmaj_train.c | |
| parent | fix seed for testing (diff) | |
| download | gensvm-19034b7ddeac1dd5de05c7a8fd34a771dddde0fb.tar.gz gensvm-19034b7ddeac1dd5de05c7a8fd34a771dddde0fb.zip | |
debugging on V Q H
Diffstat (limited to 'src/msvmmaj_train.c')
| -rw-r--r-- | src/msvmmaj_train.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/msvmmaj_train.c b/src/msvmmaj_train.c index 35681f2..ad9689d 100644 --- a/src/msvmmaj_train.c +++ b/src/msvmmaj_train.c @@ -77,6 +77,15 @@ void msvmmaj_optimize(struct MajModel *model, struct MajData *data) L = msvmmaj_get_loss(model, data, ZV); Lbar = L + 2.0*model->epsilon*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 |
