Updates to GPUTreeShap (#6087)
* Extract paths on device * Update GPUTreeShap
This commit is contained in:
@@ -337,6 +337,9 @@ class RegTree : public Model {
|
||||
/*! \brief get const reference to nodes */
|
||||
const std::vector<Node>& GetNodes() const { return nodes_; }
|
||||
|
||||
/*! \brief get const reference to stats */
|
||||
const std::vector<RTreeNodeStat>& GetStats() const { return stats_; }
|
||||
|
||||
/*! \brief get node statistics given nid */
|
||||
RTreeNodeStat& Stat(int nid) {
|
||||
return stats_[nid];
|
||||
|
||||
Reference in New Issue
Block a user