Accord.MachineLearning.DecisionTrees.Pruning.ErrorBasedPruning.getMaxChild C# (CSharp) 메소드

getMaxChild() 개인적인 메소드

private getMaxChild ( DecisionNode tree ) : DecisionNode
tree DecisionNode
리턴 DecisionNode
        private DecisionNode getMaxChild(DecisionNode tree)
        {
            DecisionNode max = null;
            int maxCount = 0;

            foreach (var child in tree.Branches)
            {
                var list = subsets[child];
                if (list.Count > maxCount)
                {
                    max = child;
                    maxCount = list.Count;
                }
            }

            return max;
        }