C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Static Public Member Functions | List of all members
Model Class Referenceabstract

Base class for models trained with the gradient boosted trees regression algorithm More...

Static Public Member Functions

static services::SharedPtr< Modelcreate (size_t nFeatures, services::Status *stat=NULL)
 

Class Declaration

Template Parameters
modelFPTypeData type to store model data, double or float
References

Member Function Documentation

virtual void clear ( )
pure virtual

Removes all trees from the model

static services::SharedPtr<Model> create ( size_t  nFeatures,
services::Status *  stat = NULL 
)
static

Constructs the model

Parameters
[in]nFeaturesNumber of features in the dataset
[out]statStatus of the model construction
virtual size_t getNumberOfTrees ( ) const
pure virtual

Gets number of trees in the model

Returns
number of trees
virtual size_t numberOfTrees ( ) const
pure virtual

Gets number of trees in the model

Returns
number of trees
Deprecated:
This item will be removed in a future release. Use Model::getNumberOfTrees instead.
virtual void traverseBF ( size_t  iTree,
algorithms::regression::TreeNodeVisitor &  visitor 
) const
pure virtual

Performs Breadth First Traversal of i-th tree

Parameters
[in]iTreeIndex of the tree to traverse
[in]visitorThis object gets notified when tree nodes are visited
Deprecated:
This item will be removed in a future release. Use Model::traverseBFS instead.
virtual void traverseBFS ( size_t  iTree,
tree_utils::regression::TreeNodeVisitor &  visitor 
) const
pure virtual

Perform Breadth First Traversal of i-th tree

Parameters
[in]iTreeIndex of the tree to traverse
[in]visitorThis object gets notified when tree nodes are visited
virtual void traverseDF ( size_t  iTree,
algorithms::regression::TreeNodeVisitor &  visitor 
) const
pure virtual

Performs Depth First Traversal of i-th tree

Parameters
[in]iTreeIndex of the tree to traverse
[in]visitorThis object gets notified when tree nodes are visited
Deprecated:
This item will be removed in a future release. Use Model::traverseDFS instead.
virtual void traverseDFS ( size_t  iTree,
tree_utils::regression::TreeNodeVisitor &  visitor 
) const
pure virtual

Perform Depth First Traversal of i-th tree

Parameters
[in]iTreeIndex of the tree to traverse
[in]visitorThis object gets notified when tree nodes are visited

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.