diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-05-19 19:40:56 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-05-19 19:40:56 +0800 |
commit | d5ab835ea462b4e75298b34fb8f61dbf14793aa8 (patch) | |
tree | 83e7d7b2f71284416f554a16141cfb7f5463a776 /model/ranksvm.cpp | |
parent | ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8 (diff) | |
download | ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.tar.gz ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.tar.bz2 ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.zip |
extern all variable & const
Diffstat (limited to 'model/ranksvm.cpp')
-rw-r--r-- | model/ranksvm.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/model/ranksvm.cpp b/model/ranksvm.cpp index bb50126..068bf47 100644 --- a/model/ranksvm.cpp +++ b/model/ranksvm.cpp @@ -10,6 +10,18 @@ using namespace std; double C=1e-4;// Compensating & scaling +// Main terminating criteria +int maxiter = 50; // max iteration count +double prec=1e-10; // precision +// conjugate gradient +double cg_prec=1e-10; // precision +int cg_maxiter = 5; // not worth having a large number +int ls_maxiter = 10; +// line search +double line_prec=1e-10; // precision +double line_turb=1e-15; // purturbation + + int RSVM::saveModel(const string fname){ std::ofstream fout(fname.c_str()); |