From 1a171bcfef18ce00cf02f4a0b272f283554dcd46 Mon Sep 17 00:00:00 2001 From: Rishabh Garg <56191449+RishabhGarg108@users.noreply.github.com> Date: Tue, 22 Jun 2021 14:53:14 +0530 Subject: [PATCH] Fix style check warnings --- .../methods/decision_tree/decision_tree_regressor.hpp | 5 ++++- .../methods/decision_tree/decision_tree_regressor_impl.hpp | 6 ++++-- src/mlpack/methods/decision_tree/mad_gain.hpp | 1 - 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mlpack/methods/decision_tree/decision_tree_regressor.hpp b/src/mlpack/methods/decision_tree/decision_tree_regressor.hpp index aed4529921..6ad75adc05 100644 --- a/src/mlpack/methods/decision_tree/decision_tree_regressor.hpp +++ b/src/mlpack/methods/decision_tree/decision_tree_regressor.hpp @@ -409,7 +409,10 @@ class DecisionTreeRegressor : size_t NumLeaves() const; //! Get the child of the given index. - const DecisionTreeRegressor& Child(const size_t i) const { return *children[i]; } + const DecisionTreeRegressor& Child(const size_t i) const + { + return *children[i]; + } //! Modify the child of the given index (be careful!). DecisionTreeRegressor& Child(const size_t i) { return *children[i]; } diff --git a/src/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp b/src/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp index d29bae904b..82432d01e1 100644 --- a/src/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp +++ b/src/mlpack/methods/decision_tree/decision_tree_regressor_impl.hpp @@ -677,7 +677,8 @@ double DecisionTreeRegressor(values, weights, 0, values.n_elem); } - }; } // namespace tree