Skip to content

Commit

Permalink
[CPP] disable early stopping in dart (#1894)
Browse files Browse the repository at this point in the history
* [CPP] disable early stopping in dart

* fix compile error
  • Loading branch information
guolinke committed Dec 10, 2018
1 parent 47f0d5e commit 3f1fc83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/boosting/dart.hpp
Expand Up @@ -78,6 +78,11 @@ class DART: public GBDT {
*out_len = static_cast<int64_t>(train_score_updater_->num_data()) * num_class_;
return train_score_updater_->score();
}

bool EvalAndCheckEarlyStopping() override {
GBDT::OutputMetric(iter_);
return false;
}

private:
/*!
Expand Down
2 changes: 1 addition & 1 deletion src/boosting/gbdt.h
Expand Up @@ -360,7 +360,7 @@ class GBDT : public GBDTBase {
/*!
* \brief Print eval result and check early stopping
*/
bool EvalAndCheckEarlyStopping();
virtual bool EvalAndCheckEarlyStopping();

/*!
* \brief reset config for bagging
Expand Down

0 comments on commit 3f1fc83

Please sign in to comment.