diff options
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) { |