aboutsummaryrefslogtreecommitdiff
path: root/src/gensvm_train.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gensvm_train.c')
-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 5c668e0..e313738 100644
--- a/src/gensvm_train.c
+++ b/src/gensvm_train.c
@@ -58,15 +58,15 @@ void gensvm_train(struct GenModel *model, struct GenData *data,
real_seed = (model->seed == -1) ? time(NULL) : model->seed;
srand(real_seed);
- // initialize the V matrix (potentially with a seed model)
- gensvm_init_V(seed_model, model, data);
-
// preprocess kernel
gensvm_kernel_preprocess(model, data);
// reallocate model for kernels
gensvm_reallocate_model(model, data->n, data->r);
+ // initialize the V matrix (potentially with a seed model)
+ gensvm_init_V(seed_model, model, data);
+
// initialize weights
gensvm_initialize_weights(data, model);