Click or drag to resize
Accord.NET (logo)

DecisionTreeTraverse Method (DecisionTreeTraversalMethod, DecisionNode)

Traverse a subtree using a tree traversal method. Can be iterated with a foreach loop.

Namespace:  Accord.MachineLearning.DecisionTrees
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public IEnumerable<DecisionNode> Traverse(
	DecisionTreeTraversalMethod method,
	DecisionNode subtree
)
Request Example View Source

Parameters

method
Type: Accord.MachineLearning.DecisionTreesDecisionTreeTraversalMethod
The tree traversal method. Common methods are available in the TreeTraversalstatic class.
subtree
Type: Accord.MachineLearning.DecisionTreesDecisionNode
The root of the subtree to be traversed.

Return Value

Type: IEnumerableDecisionNode
An IEnumerableT object which can be used to traverse the tree using the chosen traversal method.
See Also