change makefile to lazy checkpt, fix col splt code

This commit is contained in:
tqchen
2015-01-15 21:32:31 -08:00
parent 962c2432a0
commit b762231b02
8 changed files with 84 additions and 33 deletions

View File

@@ -270,6 +270,12 @@ class BoostLearner : public rabit::ISerializable {
obj_->GetGradient(preds_, train.info, iter, &gpair_);
gbm_->DoBoost(train.fmat(), this->FindBufferOffset(train), train.info.info, &gpair_);
}
/*!
* \brief whether model allow lazy checkpoint
*/
inline bool AllowLazyCheckPoint(void) const {
return gbm_->AllowLazyCheckPoint();
}
/*!
* \brief evaluate the model for specific iteration
* \param iter iteration number