diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-05-27 13:22:16 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-05-27 13:22:16 +0800 |
commit | 556593fdd54ddcca5014fe6ed2911615dab4d36a (patch) | |
tree | 268df28cf12b13ed794ac34758bf7092103d0418 /model/ranksvmtn.cpp | |
parent | 2df038e399a97cc80c9d57682d05f1eeaa9ced89 (diff) | |
download | ranksvm-556593fdd54ddcca5014fe6ed2911615dab4d36a.tar.gz ranksvm-556593fdd54ddcca5014fe6ed2911615dab4d36a.tar.bz2 ranksvm-556593fdd54ddcca5014fe6ed2911615dab4d36a.zip |
variable input
Diffstat (limited to 'model/ranksvmtn.cpp')
-rw-r--r-- | model/ranksvmtn.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/model/ranksvmtn.cpp b/model/ranksvmtn.cpp index 9beed65..01fcb83 100644 --- a/model/ranksvmtn.cpp +++ b/model/ranksvmtn.cpp @@ -192,12 +192,12 @@ int line_search(const VectorXd &w,RidList &D,const VectorXd &corr,const VectorXd g = grad.dot(step); cal_Hs(D,rank,corr,alpha,step,Hs); h = Hs.dot(step); - g=g+line_turb; - h = h+line_turb; + g=g+ls_turb; + h = h+ls_turb; t=t-g/h; ++iter; LOG(INFO) << "line search iter "<<iter<<", prec:"<<g*g/h; - if (g*g/h<line_prec) + if (g*g/h<ls_prec) break; if (iter >= ls_maxiter) { |