aboutsummaryrefslogtreecommitdiff
path: root/src/msvmmaj_train.c
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2014-07-02 17:09:38 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2014-07-02 17:09:38 +0200
commit75a91a963c979b0d657b8839036cd82f6ae5f24b (patch)
tree1fd14e14d6cf0e877c07ecc95258e3968460cc0a /src/msvmmaj_train.c
parentset element of category matrix to zero explicitly, not calloced (diff)
downloadgensvm-75a91a963c979b0d657b8839036cd82f6ae5f24b.tar.gz
gensvm-75a91a963c979b0d657b8839036cd82f6ae5f24b.zip
seed V based on scale of X
Diffstat (limited to 'src/msvmmaj_train.c')
-rw-r--r--src/msvmmaj_train.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msvmmaj_train.c b/src/msvmmaj_train.c
index 2333544..4aea85f 100644
--- a/src/msvmmaj_train.c
+++ b/src/msvmmaj_train.c
@@ -88,13 +88,14 @@ void msvmmaj_optimize(struct MajModel *model, struct MajData *data)
Lbar = L;
L = msvmmaj_get_loss(model, data, ZV);
- if (it%100 == 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++;
}
- note("optimization finished, iter = %li, error = %15.16f\n", it-1,
+ note("optimization finished, iter = %li, loss = %15.16f, "
+ "rel. diff. = %15.16f\n", it-1, L,
(Lbar - L)/L);
note("number of support vectors: %li\n", msvmmaj_num_sv(model, data));