Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Sep 15, 2023
1 parent 6d8e8a2 commit 5f8c56d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions h2o-algos/src/main/java/hex/adaboost/AdaBoost.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import water.exceptions.H2OModelBuilderIllegalArgumentException;
import water.fvec.Frame;
import water.fvec.Vec;
import water.util.Timer;
import water.util.TwoDimTable;

import java.util.ArrayList;
Expand Down Expand Up @@ -110,6 +111,7 @@ private void buildAdaboost() {
}

for (int n = 0; n < _parms._n_estimators; n++) {
Timer timer = new Timer();
ModelBuilder job = chooseWeakLearner(_trainWithWeights);
job._parms._seed += n;
Model model = (Model) job.trainModel().get();
Expand All @@ -128,6 +130,8 @@ private void buildAdaboost() {
updateWeightsTask.doAll(_trainWithWeights.vec(_weightsName), _trainWithWeights.vec(_parms._response_column), score.vec("predict"));
_job.update(1);
_model.update(_job);
LOG.info((n + 1) + ". estimator was built in " + timer.toString());
LOG.info("*********************************************************************");
}
if (_trainWithWeights != _parms.train()) {
DKV.remove(_trainWithWeights._key);
Expand Down

0 comments on commit 5f8c56d

Please sign in to comment.