diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-05-19 18:14:20 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-05-19 18:14:20 +0800 |
commit | ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8 (patch) | |
tree | bb681d763b799345fc1fbf3b861001e12af639f4 /model | |
parent | 5297c7d0358f01193f9057fa0fcae82d55a2872b (diff) | |
download | ranksvm-ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8.tar.gz ranksvm-ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8.tar.bz2 ranksvm-ea39d8f1ac02646e51f3f05cb8c4309bfb7bc3b8.zip |
del r_1<r_2
Diffstat (limited to 'model')
-rw-r--r-- | model/ranksvmtn.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp index 02f887f..d8e4c5c 100644 --- a/model/ranksvmtn.cpp +++ b/model/ranksvmtn.cpp @@ -96,12 +96,6 @@ int cg_solve(RidList &D,const vector<int> &rank,const VectorXd &corr,const Vecto LOG(INFO) << "CG iter "<<iter<<", r:"<<r_1; if (r_1<cg_prec) // Terminate condition break; - if (r_1>r_2) - { - LOG(INFO) << "CG forced termination by backward constraint, reverting"; - x=x-p*alpha; - break; - } if (iter >= cg_maxiter) { LOG(INFO) << "CG forced termination by maxiter"; |