aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gensvm_train.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gensvm_train.c b/src/gensvm_train.c
index 4c0f332..d83613d 100644
--- a/src/gensvm_train.c
+++ b/src/gensvm_train.c
@@ -31,12 +31,12 @@ void gensvm_train(struct GenModel *model, struct GenData *data,
model->m = data->m;
model->K = data->K;
- // initialize the V matrix (potentially with a seed model)
- gensvm_init_V(seed_model, model, data);
-
// allocate model
gensvm_allocate_model(model);
+ // initialize the V matrix (potentially with a seed model)
+ gensvm_init_V(seed_model, model, data);
+
// preprocess kernel
gensvm_kernel_preprocess(model, data);