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")); } }
public DecisionTree(TrainingDataSet dataSet) { DataSet = dataSet; }