From 3ff74de96e895782fb7d112eec04528655df324a Mon Sep 17 00:00:00 2001 From: himanshupathak21061998 Date: Fri, 17 Jan 2020 13:09:17 +0530 Subject: [PATCH] Removing info about new weaklearner --- src/mlpack/methods/adaboost/adaboost_impl.hpp | 2 -- src/mlpack/methods/decision_tree/decision_tree_impl.hpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mlpack/methods/adaboost/adaboost_impl.hpp b/src/mlpack/methods/adaboost/adaboost_impl.hpp index 35514eb476..88929c06c6 100644 --- a/src/mlpack/methods/adaboost/adaboost_impl.hpp +++ b/src/mlpack/methods/adaboost/adaboost_impl.hpp @@ -120,8 +120,6 @@ double AdaBoost::Train( weights = arma::sum(D); // Use the existing weak learner to train a new one with new weights. - // In fact, the new weak learner just inherits some hyperparameters - // from existing weak learner. WeakLearnerType w(other, tempData, labels, numClasses, weights); w.Classify(tempData, predictedLabels); diff --git a/src/mlpack/methods/decision_tree/decision_tree_impl.hpp b/src/mlpack/methods/decision_tree/decision_tree_impl.hpp index b11a1a8225..7221ee903b 100644 --- a/src/mlpack/methods/decision_tree/decision_tree_impl.hpp +++ b/src/mlpack/methods/decision_tree/decision_tree_impl.hpp @@ -88,11 +88,10 @@ DecisionTree passlabels = tmpLabels; // Pass off work to the Train() method. arma::rowvec weights; // Fake weights, not used. - Train(tmpData, 0, tmpData.n_cols, passlabels, numClasses, weights, + Train(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights, minimumLeafSize, minimumGainSplit, maximumDepth, dimensionSelector); }