fix
This commit is contained in:
parent
19a1ee24a5
commit
d4ab359be1
@ -282,7 +282,7 @@ class GBTree : public IGradBooster {
|
|||||||
tree::RegTree::FVec &feats = thread_temp[tid];
|
tree::RegTree::FVec &feats = thread_temp[tid];
|
||||||
feats.Fill(batch[i]);
|
feats.Fill(batch[i]);
|
||||||
for (size_t j = 0; j < trees.size(); ++j) {
|
for (size_t j = 0; j < trees.size(); ++j) {
|
||||||
int tid = trees[i]->GetLeafIndex(feats, info.GetRoot(ridx));
|
int tid = trees[j]->GetLeafIndex(feats, info.GetRoot(ridx));
|
||||||
preds[ridx * mparam.num_trees + j] = static_cast<float>(tid);
|
preds[ridx * mparam.num_trees + j] = static_cast<float>(tid);
|
||||||
}
|
}
|
||||||
feats.Drop(batch[i]);
|
feats.Drop(batch[i]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user