add objective
This commit is contained in:
parent
135d461c40
commit
49e641012f
@ -170,6 +170,9 @@ class BoostLearner : public rabit::ISerializable {
|
|||||||
if (gbm_ != NULL) delete gbm_;
|
if (gbm_ != NULL) delete gbm_;
|
||||||
this->InitTrainer(calc_num_feature);
|
this->InitTrainer(calc_num_feature);
|
||||||
this->InitObjGBM();
|
this->InitObjGBM();
|
||||||
|
char tmp[32];
|
||||||
|
utils::SPrintf(tmp, sizeof(tmp), "%u", mparam.num_class);
|
||||||
|
obj_->SetParam("num_class", tmp);
|
||||||
gbm_->LoadModel(fi, with_pbuffer);
|
gbm_->LoadModel(fi, with_pbuffer);
|
||||||
if (!with_pbuffer || distributed_mode == 2) {
|
if (!with_pbuffer || distributed_mode == 2) {
|
||||||
gbm_->ResetPredBuffer(pred_buffer_size);
|
gbm_->ResetPredBuffer(pred_buffer_size);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user