Skip to content

Commit ffadd80

Browse files
committed
Revert "remove the symmetric hessian."
This reverts commit e7d74ce.
1 parent 9ac4691 commit ffadd80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objective/lambdarank_obj.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ LambdaGrad(linalg::VectorView<float const> labels, common::Span<float const> pre
123123
}
124124

125125
auto lambda_ij = (sigmoid - 1.0) * delta_metric;
126-
auto hessian_ij = std::max(sigmoid * (1.0 - sigmoid), Eps64()) * delta_metric;
126+
auto hessian_ij = std::max(sigmoid * (1.0 - sigmoid), Eps64()) * delta_metric * 2.0;
127127

128128
auto k = t_plus.Size();
129129
assert(t_minus.Size() == k && "Invalid size of position bias");

0 commit comments

Comments
 (0)