diff --git a/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp b/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp index d777ade217..d4ffe22c3c 100644 --- a/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp +++ b/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp @@ -55,7 +55,7 @@ class SSELoss * Returns the output value for the leaf in the tree. */ template - double OutputLeafValue(const MatType& input, + double OutputLeafValue(const MatType& /* input */, const WeightVecType& /* weights */) { return -ApplyL1(arma::accu(gradients)) / (arma::accu(hessians) + lambda); diff --git a/src/mlpack/tests/xgboost_test.cpp b/src/mlpack/tests/xgboost_test.cpp index f3904857ca..40c3fdfe11 100644 --- a/src/mlpack/tests/xgboost_test.cpp +++ b/src/mlpack/tests/xgboost_test.cpp @@ -44,7 +44,7 @@ TEST_CASE("SSELeafValueTest", "[XGBTest]") double leafValue = -0.075; SSELoss Loss; - double gain = Loss.Evaluate(input, weights); + double = Loss.Evaluate(input, weights); REQUIRE(Loss.OutputLeafValue(input, weights) == leafValue); }