Skip to content

Commit

Permalink
Update TreeVisitor with node cover value
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuber21 committed Oct 10, 2023
1 parent e418ec4 commit bc04a68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions cpp/daal/include/algorithms/tree_utils/tree_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ struct DAAL_EXPORT SplitNodeDescriptor : public NodeDescriptor
{
size_t featureIndex; /*!< Feature used for splitting the node */
double featureValue; /*!< Threshold value at the node */
double coverValue; /*!< Cover (sum_hess) for the node */
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ namespace interface2
*/
struct DAAL_EXPORT LeafNodeDescriptor : public NodeDescriptor
{
size_t label; /*!< Label to be predicted when reaching the leaf */
const double * prob; /*!< Probabilities estimation for the leaf */
size_t label; /*!< Label to be predicted when reaching the leaf */
const double * prob; /*!< Probabilities estimation for the leaf */
const double * cover; /*!< Cover (sum_hess) for the leaf */
};

typedef daal::algorithms::tree_utils::TreeNodeVisitor<LeafNodeDescriptor> TreeNodeVisitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ namespace interface1
*/
struct DAAL_EXPORT LeafNodeDescriptor : public NodeDescriptor
{
double response; /*!< Value to be predicted when reaching the leaf */
double response; /*!< Value to be predicted when reaching the leaf */
double coverValue; /*!< Cover (sum_hess) for the leaf */
};

typedef daal::algorithms::tree_utils::TreeNodeVisitor<LeafNodeDescriptor> TreeNodeVisitor;
Expand Down

0 comments on commit bc04a68

Please sign in to comment.