diff options
Diffstat (limited to 'src/gensvm_optimize.c')
| -rw-r--r-- | src/gensvm_optimize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gensvm_optimize.c b/src/gensvm_optimize.c index fff6768..b6bc164 100644 --- a/src/gensvm_optimize.c +++ b/src/gensvm_optimize.c @@ -123,6 +123,9 @@ void gensvm_optimize(struct GenModel *model, struct GenData *data) // store the training error in the model model->training_error = (Lbar - L)/L; + // store the iteration count in the model + model->elapsed_iter = it - 1; + // free the workspace gensvm_free_work(work); } |
