Python* API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Public Member Functions | List of all members
TreeNodeVisitor Class Reference

Interface of abstract visitor used in tree traversal methods. More...

Public Member Functions

def onLeafNode
 
def onSplitNode
 
def __init__
 

Detailed Description

Deprecated:
This item will be removed in a future release.
References

Constructor & Destructor Documentation

def __init__ (   self)

Member Function Documentation

def onLeafNode (   self,
  level,
  response 
)

This method is called by traversal method when a leaf node is visited.

Parameters
levelLevel in the tree where this node is located
responseThe value of response given by that node
Returns
This method should return false to cancel further search and true otherwise
def onSplitNode (   self,
  level,
  featureIndex,
  featureValue 
)

This method is called by traversal method when a split node is visited.

Parameters
levelIndex of the feature used in a split criteria
featureIndexIndex of the feature used as a split criteria in this node
featureValueFeature value used as a split criteria in this node
Returns
This method should return false to cancel further search and true otherwise

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

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