Base class for models trained with the Decision tree algorithm
More...
| def __init__ |
( |
|
self, |
|
|
|
nFeatures = 0 |
|
) |
| |
Constructs the model trained with the Decision tree algorithm
- Parameters
-
| nFeatures | Number of features in the dataset |
- Deprecated:
- This item will be removed in a future release. Use Model.create instead.
| def create |
( |
|
nFeatures = 0, |
|
|
|
stat = None |
|
) |
| |
Constructs the model trained with the boosting algorithm
- 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.decision_tree.classification.Model >
| def getNumberOfFeatures |
( |
|
self | ) |
|
Retrieves the number of features in the dataset was used on the training stage
- Returns
- Number of features in the dataset was used on the training stage
| def getSerializationTag |
( |
|
self | ) |
|
getSerializationTag(Model self) -> int
- Variant 1
Returns actual model implementation
- Returns
- Model implementation
- Variant 2
Returns actual model implementation
- Returns
- Model implementation
| def traverseBF |
( |
|
self, |
|
|
|
visitor |
|
) |
| |
Perform Breadth First Traversal of tree
- Parameters
-
| 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, |
|
|
|
visitor |
|
) |
| |
Perform Breadth First Traversal of tree
- Parameters
-
| visitor | This object gets notified when tree nodes are visited |
| def traverseDF |
( |
|
self, |
|
|
|
visitor |
|
) |
| |
Perform Depth First Traversal of tree
- Parameters
-
| 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, |
|
|
|
visitor |
|
) |
| |
Perform Depth First Traversal of tree
- Parameters
-
| visitor | This object gets notified when tree nodes are visited |
The documentation for this class was generated from the following file:
- algorithms/decision_tree/classification/__init__.py