Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPP] disable early stopping in dart #1894

Merged
merged 2 commits into from Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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