Model of the classifier trained by the gbt.training.Batch algorithm.
More...
Removes all trees from the model
def create |
( |
|
nFeatures, |
|
|
|
stat = None |
|
) |
| |
Constructs the model
- Parameters
-
nFeatures | Number of features in the dataset |
stat | Status of the model construction |
downCast(daal.services.SharedPtr< daal.algorithms.classifier.Model > const & r) -> daal.services.SharedPtr< daal.algorithms.gbt.classification.Model >
def getNumberOfTrees |
( |
|
self | ) |
|
Gets number of trees in the model
- Returns
- number of trees
def getSerializationTag |
( |
|
self | ) |
|
getSerializationTag(Model self) -> int
def numberOfTrees |
( |
|
self | ) |
|
def traverseBF |
( |
|
self, |
|
|
|
iTree, |
|
|
|
visitor |
|
) |
| |
Performs Breadth First Traversal of i-th tree
- Parameters
-
iTree | Index of the tree to traverse |
visitor | This object gets notified when tree nodes are visited |
- Deprecated:
- This item will be removed in a future release. Use Model.traverseBFS instead.
def traverseBFS |
( |
|
self, |
|
|
|
iTree, |
|
|
|
visitor |
|
) |
| |
Perform Breadth First Traversal of i-th tree
- Parameters
-
iTree | Index of the tree to traverse |
visitor | This object gets notified when tree nodes are visited |
def traverseDF |
( |
|
self, |
|
|
|
iTree, |
|
|
|
visitor |
|
) |
| |
Performs Depth First Traversal of i-th tree
- Parameters
-
iTree | Index of the tree to traverse |
visitor | This object gets notified when tree nodes are visited |
- Deprecated:
- This item will be removed in a future release. Use Model.traverseDFS instead.
def traverseDFS |
( |
|
self, |
|
|
|
iTree, |
|
|
|
visitor |
|
) |
| |
Perform Depth First Traversal of i-th tree
- Parameters
-
iTree | Index of the tree to traverse |
visitor | This object gets notified when tree nodes are visited |
The documentation for this class was generated from the following file:
- algorithms/gbt/classification/__init__.py