aboutsummaryrefslogtreecommitdiff
path: root/src/msvmmaj_train.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msvmmaj_train.c')
-rw-r--r--src/msvmmaj_train.c9
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