Skip to content

Commit

Permalink
fix a silly bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Dec 22, 2017
1 parent 92f2a57 commit b30beb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/application/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void Application::LoadData() {
PredictFunction predict_fun = nullptr;
PredictionEarlyStopInstance pred_early_stop = CreatePredictionEarlyStopInstance("none", LightGBM::PredictionEarlyStopConfig());
// need to continue training
if (boosting_->NumberOfTotalModel() > 0 || config_.task_type != TaskType::KRefitTree) {
if (boosting_->NumberOfTotalModel() > 0 && config_.task_type != TaskType::KRefitTree) {
predictor.reset(new Predictor(boosting_.get(), -1, true, false, false, false, -1, -1));
predict_fun = predictor->GetPredictFunction();
}
Expand Down

0 comments on commit b30beb9

Please sign in to comment.