File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,6 @@ void GBTree::Configure(Args const& cfg) {
146
146
if (specified_updater_) {
147
147
error::WarnManualUpdater ();
148
148
}
149
-
150
- if (model_.learner_model_param ->IsVectorLeaf ()) {
151
- CHECK (tparam_.tree_method == TreeMethod::kHist || tparam_.tree_method == TreeMethod::kAuto )
152
- << " Only the hist tree method is supported for building multi-target trees with vector "
153
- " leaf." ;
154
- CHECK (ctx_->IsCPU ()) << " GPU is not yet supported for vector leaf." ;
155
- }
156
-
157
149
LOG (DEBUG) << " Using tree method: " << static_cast <int >(tparam_.tree_method );
158
150
159
151
if (!specified_updater_) {
@@ -225,6 +217,13 @@ void GBTree::UpdateTreeLeaf(DMatrix const* p_fmat, HostDeviceVector<float> const
225
217
226
218
void GBTree::DoBoost (DMatrix* p_fmat, HostDeviceVector<GradientPair>* in_gpair,
227
219
PredictionCacheEntry* predt, ObjFunction const * obj) {
220
+ if (model_.learner_model_param ->IsVectorLeaf ()) {
221
+ CHECK (tparam_.tree_method == TreeMethod::kHist || tparam_.tree_method == TreeMethod::kAuto )
222
+ << " Only the hist tree method is supported for building multi-target trees with vector "
223
+ " leaf." ;
224
+ CHECK (ctx_->IsCPU ()) << " GPU is not yet supported for vector leaf." ;
225
+ }
226
+
228
227
TreesOneIter new_trees;
229
228
bst_target_t const n_groups = model_.learner_model_param ->OutputLength ();
230
229
monitor_.Start (" BoostNewTrees" );
You can’t perform that action at this time.
0 commit comments