예제 #1
0
        //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;
            }
        }
예제 #2
0
        //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;
            }
        }