Removing info about new weaklearner

This commit is contained in:
himanshupathak21061998
2020-01-17 13:09:17 +05:30
parent ab3f7a1178
commit 3ff74de96e
2 changed files with 1 additions and 4 deletions
@@ -120,8 +120,6 @@ double AdaBoost<WeakLearnerType, MatType>::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);
@@ -88,11 +88,10 @@ DecisionTree<FitnessFunction,
// Set the correct dimensionality for the dimension selector.
dimensionSelector.Dimensions() = tmpData.n_rows;
arma::Row<size_t> passlabels = tmpLabels;
// Pass off work to the Train() method.
arma::rowvec weights; // Fake weights, not used.
Train<false>(tmpData, 0, tmpData.n_cols, passlabels, numClasses, weights,
Train<false>(tmpData, 0, tmpData.n_cols, tmpLabels, numClasses, weights,
minimumLeafSize, minimumGainSplit, maximumDepth, dimensionSelector);
}