diff --git a/HISTORY.md b/HISTORY.md index 42353feb55..35389193c0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ ### mlpack ?.?.? ###### ????-??-?? + + * The DecisionStump class has been marked deprecated use DecisionTree + class with `NoRecursion=true` or use `ID3DecisionStump` (#2099). + * Add Model() to the FFN class to access individual layers (#2043). * Update documentation for pip and conda installation packages (#2044). diff --git a/src/mlpack/methods/decision_stump/decision_stump_main.cpp b/src/mlpack/methods/decision_stump/decision_stump_main.cpp index 6f8f308afc..33417e9481 100644 --- a/src/mlpack/methods/decision_stump/decision_stump_main.cpp +++ b/src/mlpack/methods/decision_stump/decision_stump_main.cpp @@ -125,6 +125,10 @@ static void mlpackMain() ReportIgnoredParam({{ "test", false }}, "predictions"); + Log::Warn << "The Class DecisionStump is deprecated and will be removed in " + << "mlpack 4.0.0. Please use DecisionTree class with maximum_depth " + << "option set to 1 (that will produce a stump)." <; +/** + * Convenience typedef for decision tree (Three level decision trees). + */ typedef DecisionTree::type>::value>*) + const std::enable_if_t::type>::value>*) { using TrueMatType = typename std::decay::type; using TrueLabelsType = typename std::decay::type; @@ -163,10 +161,8 @@ DecisionTree::type>::value>*): + const std::enable_if_t::type>::value>*): NumericAuxiliarySplitInfo(other), CategoricalAuxiliarySplitInfo(other) {