From 47296445b3c5cbea101a5961ef784eb05c84f854 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Wed, 13 May 2015 19:58:53 +0800 Subject: mem tested --- model/rankaccu.cpp | 2 +- model/ranksvmtn.cpp | 16 ++++++++++------ tools/dataProvider.h | 14 +++++++------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/model/rankaccu.cpp b/model/rankaccu.cpp index ba8aee6..726f2c8 100644 --- a/model/rankaccu.cpp +++ b/model/rankaccu.cpp @@ -136,7 +136,7 @@ void rank_CMC(DataList &D,const std::vector pred,CMC & cmc) { for (int k=j;k<=i;++k) if (orig[pred_rank[k]]>0) { - cout<qid<<" "<qid<<"; pred:"< &rank,const VectorXd &corr,const Vecto { // Non preconditioned version r_1 = res.dot(res); + if (iter) + LOG(INFO) << "CG iter "< cg_maxiter) + if (iter >= cg_maxiter) { - LOG(INFO) << "CG forced termination by maxiter, r:"< cg_maxiter) + LOG(INFO) << "line search iter "<= ls_maxiter) { - LOG(INFO) << "line search forced termination by maxiter, prec:"<feature; return vec.cwiseAbs(); }; - double getL(int x){ - int a,b,n=(int)(uniq.size()+other.size()-1); + inline double getL(int x){ + int a,b,n=getqSize(); a=x/n; b=x%n; if (b