Fix gpu_hist apply_split test. (#4158)

This commit is contained in:
Jiaming Yuan
2019-02-18 02:48:28 +08:00
committed by GitHub
parent 2e618af743
commit e1240413c9
3 changed files with 10 additions and 2 deletions

View File

@@ -328,7 +328,7 @@ class RegTree {
nodes_[node.LeftChild()].SetParent(nid, true);
nodes_[node.RightChild()].SetParent(nid, false);
node.SetSplit(split_index, split_value,
default_left);
default_left);
// mark right child as 0, to indicate fresh leaf
nodes_[pleft].SetLeaf(left_leaf_weight, 0);
nodes_[pright].SetLeaf(right_leaf_weight, 0);