Click or drag to resize
Accord.NET (logo)

DecisionTreeDecide Method (Double, DecisionNode)

Computes the tree decision for a given input.

Namespace:  Accord.MachineLearning.DecisionTrees
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.5.0
Syntax
public int Decide(
	double[] input,
	DecisionNode subtree
)
Request Example View Source

Parameters

input
Type: SystemDouble
The input data.
subtree
Type: Accord.MachineLearning.DecisionTreesDecisionNode
The node where the decision starts.

Return Value

Type: Int32
A predicted class for the given input.
See Also