コード例 #1
0
        public override ISolver Copy()
        {
            TreeDescriptionC4_5 dtDescr = new TreeDescriptionC4_5(this.GetInputsCount(), this.GetOutputsCount(), this.maxDepth);
            DecisionTreeC4_5    newDT   = new DecisionTreeC4_5(dtDescr);

            newDT.root = this.root.Copy();
            return(newDT);
        }
コード例 #2
0
 public float startLearn(ISolver solver, float[][] train_x, float[] train_y)
 {
     if (solver.GetType() == typeof(DecisionTreeC4_5))
     {
         DecisionTreeC4_5 dc_solver = (DecisionTreeC4_5)solver;
         LearningC4_5(new LearningTable(train_x, train_y), dc_solver.root, (int)solver.GetInputsCount(), (int)solver.GetOutputsCount());
         solver = dc_solver;
     }
     return(0);
 }