Click or drag to resize
Accord.NET (logo)

DecisionTreeTraverse Method (DecisionTreeTraversalMethod)

Traverse the tree 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
)
Request Example View Source

Parameters

method
Type: Accord.MachineLearning.DecisionTreesDecisionTreeTraversalMethod
The tree traversal method. Common methods are available in the TreeTraversalstatic class.

Return Value

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