Beispiel #1
0
        public static DecisionTree Learn(TrainingDataSet dataSet, DtTrainingAlgorithm algorithm)
        {
            if (dataSet == null)
            {
                throw new Exception("Data Set cannot be null");
            }

            switch (algorithm)
            {
            default:
                return(Id3(dataSet.Values, dataSet.NonGoalAttributes, "root"));
            }
        }
Beispiel #2
0
 public DecisionTree(TrainingDataSet dataSet)
 {
     DataSet = dataSet;
 }