//private bool m_isleaf; public Node(ClassificationProblem problem, int first, int second) { this.m_problem = problem; this.m_first = first; this.m_second = second; this.m_llm = new LinearLeraningMachine(problem); this.m_llm.Train(); if (second > first + 1) { this.m_leftChild = new Node(problem, first + 1, second); this.m_rightChild = new Node(problem, first, second - 1); //this.m_isleaf = false; } else { //this.m_isleaf = true; } }
//private bool m_isleaf; public Node(ClassificationProblem problem, int first, int second) { this.m_problem = problem; this.m_first = first; this.m_second = second; this.m_llm = new LinearLeraningMachine(problem); this.m_llm.Train(); if (second > first + 1) { this.m_leftChild = new Node(problem, first + 1, second); this.m_rightChild = new Node(problem, first, second - 1); //this.m_isleaf = false; } else { //this.m_isleaf = true; } }