diff --git a/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp b/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp index fc4f941620..c754e9e7eb 100644 --- a/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp +++ b/src/mlpack/methods/xgboost/loss_functions/sse_loss.hpp @@ -75,7 +75,7 @@ class SSELoss arma::is_Row::value>> VecType Hessians(const VecType& /* observed */, const VecType& values) { - VecType h(values.n_elem, 1); + VecType h(values.n_elem, arma::fill::ones); return h; }