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

Public Types | Static Public Attributes | List of all members
ModelBuilder Class Reference

Model Builder class for Decision Forest Classification Model algorithm More...

Public Types

typedef size_t NodeId
 Node identifier type is size_t
 
typedef size_t TreeId
 Tree identifier type is size_t
 

Static Public Attributes

static const NodeId noParent = static_cast<size_t>(-1)
 

Class Declaration

References

Constructor & Destructor Documentation

ModelBuilder ( const size_t  nClasses,
const size_t  nTrees 
)
inline

Constructs the Decision forest classification model builder

Parameters
[in]nClassesNumber of classes
[in]nTreesNumber of trees in model

Member Function Documentation

NodeId addLeafNode ( const TreeId  treeId,
const NodeId  parentId,
const size_t  position,
const size_t  classLabel 
)
inline

Create Leaf node and add it to certain tree

Parameters
[in]treeIdTree to which new node is added
[in]parentIdParent node to which new node is added (use noParent for root node)
[in]positionPosition in parent (e.g. 0 for left and 1 for right child in a binary tree)
[in]classLabelClass label to be predicted
Returns
Node identifier
NodeId addLeafNodeByProba ( const TreeId  treeId,
const NodeId  parentId,
const size_t  position,
const double *const  proba 
)
inline

Create Leaf node and add it to certain tree

Parameters
[in]treeIdTree to which new node is added
[in]parentIdParent node to which new node is added (use noParent for root node)
[in]positionPosition in parent (e.g. 0 for left and 1 for right child in a binary tree)
[in]probaArray with probability values for each class
Returns
Node identifier
NodeId addSplitNode ( const TreeId  treeId,
const NodeId  parentId,
const size_t  position,
const size_t  featureIndex,
const double  featureValue 
)
inline

Create Split node and add it to certain tree

Parameters
[in]treeIdTree to which new node is added
[in]parentIdParent node to which new node is added (use noParent for root node)
[in]positionPosition in parent (e.g. 0 for left and 1 for right child in a binary tree)
[in]featureIndexFeature index for spliting
[in]featureValueFeature value for spliting
Returns
Node identifier
TreeId createTree ( const size_t  nNodes)
inline

Create certain tree in the decision forest model

Parameters
[in]nNodesNumber of nodes in created tree
Returns
Tree identifier
ModelPtr getModel ( )
inline

Get built model

Returns
Model pointer
services::Status getStatus ( ) const
inline

Get status of model building

Returns
Status

Member Data Documentation

const NodeId noParent = static_cast<size_t>(-1)
static

Reserved value for root nodes


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

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