diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2017-02-17 19:17:17 -0500 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2017-02-17 19:17:17 -0500 |
| commit | e8baad9ae430a838c34fa8173b36f92c9baa862d (patch) | |
| tree | 646574b2d6ee594b600c74d1e93ae2c0fbe898b2 /include | |
| parent | Bump version (diff) | |
| download | gensvm-e8baad9ae430a838c34fa8173b36f92c9baa862d.tar.gz gensvm-e8baad9ae430a838c34fa8173b36f92c9baa862d.zip | |
allow max_iter to be set in the model
Diffstat (limited to 'include')
| -rw-r--r-- | include/gensvm_base.h | 2 | ||||
| -rw-r--r-- | include/gensvm_task.h | 2 |
2 files changed, 4 insertions, 0 deletions
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; |
