aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/msvmmaj_train.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/msvmmaj_train.c b/src/msvmmaj_train.c
index 984f2b1..71a24df 100644
--- a/src/msvmmaj_train.c
+++ b/src/msvmmaj_train.c
@@ -93,6 +93,8 @@ void msvmmaj_optimize(struct MajModel *model, struct MajData *data)
"reldiff = %15.16f\n", it, L, Lbar, (Lbar - L)/L);
it++;
}
+ if (L > Lbar)
+ fprintf(stderr, "Negative step occurred in majorization.\n");
note("optimization finished, iter = %li, loss = %15.16f, "
"rel. diff. = %15.16f\n", it-1, L,