From e8baad9ae430a838c34fa8173b36f92c9baa862d Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 17 Feb 2017 19:17:17 -0500 Subject: allow max_iter to be set in the model --- include/gensvm_base.h | 2 ++ include/gensvm_task.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/gensvm_base.h b/include/gensvm_base.h index dee1d80..adef2a9 100644 --- a/include/gensvm_base.h +++ b/include/gensvm_base.h @@ -136,6 +136,8 @@ struct GenModel { double kernel_eigen_cutoff; ///< cutoff value for the ratio of eigenvalues in the reduced //eigendecomposition. + long max_iter; + ///< maximum number of iterations of the algorithm }; /** diff --git a/include/gensvm_task.h b/include/gensvm_task.h index a791262..77db463 100644 --- a/include/gensvm_task.h +++ b/include/gensvm_task.h @@ -75,6 +75,8 @@ struct GenTask { ///< coef parameter for the GenModel double degree; ///< degree parameter for the GenModel + long max_iter; + ///< maximum number of iterations of the algorithm struct GenData *train_data; ///< pointer to the training data struct GenData *test_data; -- cgit v1.2.3