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/ranksvmtn.cpp | |
parent | ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8 (diff) | |
download | ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.tar.gz ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.tar.bz2 ranksvm-d5ab835ea462b4e75298b34fb8f61dbf14793aa8.zip |
extern all variable & const
Diffstat (limited to 'model/ranksvmtn.cpp')
-rw-r--r-- | model/ranksvmtn.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp index d8e4c5c..7f292f5 100644 --- a/model/ranksvmtn.cpp +++ b/model/ranksvmtn.cpp @@ -6,17 +6,6 @@ using namespace std; using namespace Eigen; -// Main terminating criteria -const int maxiter = 50; // max iteration count -const double prec=1e-10; // precision -// conjugate gradient -const double cg_prec=1e-10; // precision -const int cg_maxiter = 5; // not worth having a large number -const int ls_maxiter = 10; -// line search -const double line_prec=1e-10; // precision -const double line_turb=1e-15; // purturbation - void cal_Dw(RidList &D,const VectorXd &w, VectorXd &Dw) { int n = D.getSize(); |