Fix static analysis error
This commit is contained in:
@@ -55,7 +55,7 @@ class SSELoss
|
||||
* Returns the output value for the leaf in the tree.
|
||||
*/
|
||||
template<typename MatType, typename WeightVecType>
|
||||
double OutputLeafValue(const MatType& input,
|
||||
double OutputLeafValue(const MatType& /* input */,
|
||||
const WeightVecType& /* weights */)
|
||||
{
|
||||
return -ApplyL1(arma::accu(gradients)) / (arma::accu(hessians) + lambda);
|
||||
|
||||
@@ -44,7 +44,7 @@ TEST_CASE("SSELeafValueTest", "[XGBTest]")
|
||||
double leafValue = -0.075;
|
||||
|
||||
SSELoss Loss;
|
||||
double gain = Loss.Evaluate<false>(input, weights);
|
||||
double = Loss.Evaluate<false>(input, weights);
|
||||
|
||||
REQUIRE(Loss.OutputLeafValue(input, weights) == leafValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user