diff --git a/src/lib/lbfgs.c b/src/lib/lbfgs.c index 277a847..12973c2 100644 --- a/src/lib/lbfgs.c +++ b/src/lib/lbfgs.c @@ -461,6 +461,7 @@ int lbfgs( we assume the initial hessian matrix H_0 as the identity matrix. */ // 初始下降方向为梯度的反方向 + // LBFGS中下降方向为 -1*H_k*g_k if (param.orthantwise_c == 0.) { vecncpy(d, g, n); //拷贝数组 并反号(乘-1) } else {