if (data[l][t] == -1)
continue;
int tI = data[l][t] + templets.offset[t][tS]; // 特征索引:找到对应weights的维数
int pI = data[l][t] + templets.offset[t][pS]; // 特征索引:找到对应weights的维数
if (tI != pI) {
diffF.adjustOrPutValue(tI, 1, 1);
diffF.adjustOrPutValue(pI, -1, -1);
diffW += weights[tI] - weights[pI]; // w^T(f(x,y)-f(x,ybar))
}
}
}